Exception: RequestHandler::JsonApiError
- Inherits:
-
ExternalBaseError
- Object
- StandardError
- BaseError
- ExternalBaseError
- RequestHandler::JsonApiError
- Defined in:
- lib/request_handler/error.rb
Direct Known Subclasses
ExternalArgumentError, OptionNotAllowedError, SchemaValidationError
Instance Method Summary collapse
Methods inherited from BaseError
Constructor Details
This class inherits a constructor from RequestHandler::BaseError
Instance Method Details
#errors ⇒ Object
28 29 30 |
# File 'lib/request_handler/error.rb', line 28 def errors RequestHandler.configuration.raise_jsonapi_errors ? @errors : [] end |
#message ⇒ Object
22 23 24 25 26 |
# File 'lib/request_handler/error.rb', line 22 def @errors.map do |error| "#{error[:code]}: #{error[:source]} #{error[:detail]}" end.join(',\n') end |