Exception: Operation::Failures::OperationFailure
- Inherits:
-
StandardError
- Object
- StandardError
- Operation::Failures::OperationFailure
- Defined in:
- lib/flow/operation/failures.rb
Instance Attribute Summary collapse
-
#details ⇒ Object
readonly
Returns the value of attribute details.
-
#problem ⇒ Object
readonly
Returns the value of attribute problem.
Instance Method Summary collapse
-
#initialize(problem = nil, **details) ⇒ OperationFailure
constructor
A new instance of OperationFailure.
Constructor Details
#initialize(problem = nil, **details) ⇒ OperationFailure
Returns a new instance of OperationFailure.
58 59 60 61 62 |
# File 'lib/flow/operation/failures.rb', line 58 def initialize(problem = nil, **details) super(problem) @problem = problem @details = OpenStruct.new(details) end |
Instance Attribute Details
#details ⇒ Object (readonly)
Returns the value of attribute details.
56 57 58 |
# File 'lib/flow/operation/failures.rb', line 56 def details @details end |
#problem ⇒ Object (readonly)
Returns the value of attribute problem.
56 57 58 |
# File 'lib/flow/operation/failures.rb', line 56 def problem @problem end |