Exception: Fulfil::HttpError

Inherits:
Error
  • Object
show all
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.

Defined Under Namespace

Classes: AuthorizationRequired, BadRequest, Forbidden, InternalServerError, MethodNotAllowed, NotAccepted, NotFound, PaymentRequired, TooManyRequests, UnprocessableEntity

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message,  = {})
  @metadata = 
  super(message)
end

Instance Attribute Details

#metadataObject (readonly)

Returns the value of attribute metadata.



11
12
13
# File 'lib/fulfil/error.rb', line 11

def 
  @metadata
end