Exception: Apia::RuntimeError
- Inherits:
-
StandardError
- Object
- StandardError
- StandardError
- Apia::RuntimeError
- Defined in:
- lib/apia/errors/runtime_error.rb
Overview
Runtime errors occurr during API requests because they could not be detected before an action is processed.
Direct Known Subclasses
ErrorExceptionError, FieldSpecParseError, InvalidArgumentError, InvalidEnumOptionError, InvalidJSONError, InvalidPolymorphValueError, InvalidScalarValueError, MissingArgumentError, NullFieldValueError, ParseError
Instance Method Summary collapse
-
#hash ⇒ Hash
Return the hash that describes this error.
-
#http_status ⇒ Integer
Return the default HTTP status code that should be returned when this error is encoutered over HTTP.
Instance Method Details
#hash ⇒ Hash
Return the hash that describes this error
19 20 21 22 23 24 25 26 27 |
# File 'lib/apia/errors/runtime_error.rb', line 19 def hash { code: 'generic_runtime_error', description: , detail: { class: self.class.name } } end |
#http_status ⇒ Integer
Return the default HTTP status code that should be returned when this error is encoutered over HTTP
12 13 14 |
# File 'lib/apia/errors/runtime_error.rb', line 12 def http_status 400 end |