Exception: Seam::Request::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/seam/request.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, status, response) ⇒ Error

Returns a new instance of Error.



12
13
14
15
16
# File 'lib/seam/request.rb', line 12

def initialize(message, status, response)
  super(message)
  @status = status
  @response = response
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



10
11
12
# File 'lib/seam/request.rb', line 10

def response
  @response
end

#statusObject (readonly)

Returns the value of attribute status.



10
11
12
# File 'lib/seam/request.rb', line 10

def status
  @status
end