Closed roback closed 8 years ago
Raise Twingly::Search::Error instead of RuntimeError when something goes wrong.
Twingly::Search::Error
RuntimeError
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.
AuthError
ServerError
Minor comment, otherwise LGTM! Haven't done any real-life testing though.
Raise
Twingly::Search::Error
instead ofRuntimeError
when something goes wrong.Calls to the API can raise two types of exceptions
AuthError
andServerError
. Which one is raised is based on the response message from the server.