Exception: RSMP::OperationError
- Defined in:
- lib/rsmp/result.rb
Overview
Raised by bang APIs when an expected failure result is explicitly unwrapped.
Instance Attribute Summary collapse
-
#failure ⇒ Object
readonly
Returns the value of attribute failure.
Instance Method Summary collapse
-
#initialize(failure) ⇒ OperationError
constructor
A new instance of OperationError.
Constructor Details
#initialize(failure) ⇒ OperationError
Returns a new instance of OperationError.
90 91 92 93 |
# File 'lib/rsmp/result.rb', line 90 def initialize(failure) @failure = failure super(failure.) end |
Instance Attribute Details
#failure ⇒ Object (readonly)
Returns the value of attribute failure.
88 89 90 |
# File 'lib/rsmp/result.rb', line 88 def failure @failure end |