twingly / twingly-search-api-ruby

:gem: Twingly Blog Search API in Ruby
https://developer.twingly.com/
MIT License
4 stars 0 forks source link

Handle exceptions #29

Closed roback closed 8 years ago

roback commented 8 years ago

Raise Twingly::Search::Error instead of RuntimeError when something goes wrong.

Calls to the API can raise two types of exceptions AuthError and ServerError. Which one is raised is based on the response message from the server.

walro commented 8 years ago

Minor comment, otherwise LGTM! Haven't done any real-life testing though.