Exception: Fulfil::HttpError
- Defined in:
- lib/fulfil/error.rb
Overview
The ‘Fulfil::HttpError` is raised whenever an API request returns a 400+ HTTP status code. See `Fulfil::ResponseHandler` for more information.
Direct Known Subclasses
AuthorizationRequired, BadRequest, Forbidden, InternalServerError, MethodNotAllowed, NotAccepted, NotFound, PaymentRequired, TooManyRequests, UnprocessableEntity
Defined Under Namespace
Classes: AuthorizationRequired, BadRequest, Forbidden, InternalServerError, MethodNotAllowed, NotAccepted, NotFound, PaymentRequired, TooManyRequests, UnprocessableEntity
Instance Attribute Summary collapse
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
Instance Method Summary collapse
-
#initialize(message, metadata = {}) ⇒ HttpError
constructor
A new instance of HttpError.
Constructor Details
#initialize(message, metadata = {}) ⇒ HttpError
Returns a new instance of HttpError.
13 14 15 16 |
# File 'lib/fulfil/error.rb', line 13 def initialize(, = {}) @metadata = super() end |
Instance Attribute Details
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata.
11 12 13 |
# File 'lib/fulfil/error.rb', line 11 def @metadata end |