Exception: Nestful::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/nestful/exceptions.rb

Direct Known Subclasses

ResponseError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(request = nil, message = nil) ⇒ Error

Returns a new instance of Error.



5
6
7
8
# File 'lib/nestful/exceptions.rb', line 5

def initialize(request = nil, message = nil)
  super(message)
  @request = request
end

Instance Attribute Details

#requestObject (readonly)

Returns the value of attribute request.



3
4
5
# File 'lib/nestful/exceptions.rb', line 3

def request
  @request
end