BlockScore/blockscore-ruby — pull request #7 by bmschwartz (2014-06-01 21:45:56+00:00)
Title: Added Suite of Blockscore Error Classes

Added several new objects for exception/error handling.

- BlockscoreError, generic error for blockscore functionality.
- ValidationError, raised when input to API can not be validated.
- ParameterError, required parameter not provided to API
- AuthorizationError, raised when API key is invalid
- NotFoundError, raised when trying to access nonexistent endpoints
- InternalServerError, raised when an error occurs on the Blockscore API

These objects contain variables such as "http_status", "message", "json_body", and "error_type".

Additionally, ValidationError has the "error_code" and "param" attributes that better describe what the error is.