Exception: OpenAmplify::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/openamplify/error.rb

Direct Known Subclasses

ClientError, ServerError

Defined Under Namespace

Classes: BadRequest, ClientError, Forbidden, RequestTooLarge, ServerError, ServiceUnavailable

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, http_headers) ⇒ Error

Returns a new instance of Error.



6
7
8
9
# File 'lib/openamplify/error.rb', line 6

def initialize(message, http_headers)
  @http_headers = http_headers
  super(message)
end

Instance Attribute Details

#http_headersObject (readonly)

Returns the value of attribute http_headers.



4
5
6
# File 'lib/openamplify/error.rb', line 4

def http_headers
  @http_headers
end