Exception: PetraServerError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response = nil) ⇒ PetraServerError

Returns a new instance of PetraServerError.



3
4
5
# File 'lib/petra_sdk/error.rb', line 3

def initialize(response=nil)
  @response = response
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



2
3
4
# File 'lib/petra_sdk/error.rb', line 2

def response
  @response
end