Exception: Obligation::RejectedError

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

Overview

A RejectedError will be raised when Obligation is rejected and someone tries to access the result.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, cause = $!) ⇒ RejectedError

Returns a new instance of RejectedError.



162
163
164
165
# File 'lib/obligation.rb', line 162

def initialize(msg, cause = $!)
  super msg
  @cause = cause
end

Instance Attribute Details

#causeObject (readonly)

Returns the value of attribute cause.



161
162
163
# File 'lib/obligation.rb', line 161

def cause
  @cause
end