socketry / cloudflare

An asynchronous Ruby wrapper for the CloudFlare V4 API.
MIT License
138 stars 86 forks source link

Use exceptions for errors rather than returning objects with messages. #4

Closed ioquatix closed 10 years ago

ioquatix commented 10 years ago

It is canonical Ruby to throw exceptions when something goes wrong, and simplifies error handling for client code.