Exception: OkraServerError

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

Defined Under Namespace

Classes: ArgumentError, OkraBadKeyError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response = nil) ⇒ OkraServerError

Returns a new instance of OkraServerError.



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

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

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



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

def response
  @response
end