Exception: Obligation::RejectedError
- Inherits:
-
StandardError
- Object
- StandardError
- Obligation::RejectedError
- 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
-
#cause ⇒ Object
readonly
Returns the value of attribute cause.
Instance Method Summary collapse
-
#initialize(msg, cause = $!) ⇒ RejectedError
constructor
A new instance of RejectedError.
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
#cause ⇒ Object (readonly)
Returns the value of attribute cause.
161 162 163 |
# File 'lib/obligation.rb', line 161 def cause @cause end |