IndicoDataSolutions / IndicoIo-ruby

A simple Ruby Wrapper for the indico set of APIs
MIT License
13 stars 2 forks source link

Needs to throw IndicoError when API returns an error #112

Closed le-doude closed 8 years ago

le-doude commented 8 years ago

Currently we have no solid way to isolate errors returned by the API. For example: Indico.emotion('頑張れ') throws a RuntimeError with the message. It would be better to use a custom error class.