Exception: RestChain::RestChainError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, cause = nil) ⇒ RestChainError

Returns a new instance of RestChainError.



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

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

Instance Attribute Details

#causeObject (readonly)

Returns the value of attribute cause.



7
8
9
# File 'lib/rest_chain/exceptions.rb', line 7

def cause
  @cause
end