Exception: Operation::Failures::OperationFailure

Inherits:
StandardError
  • Object
show all
Defined in:
lib/flow/operation/failures.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#detailsObject (readonly)

Returns the value of attribute details.



56
57
58
# File 'lib/flow/operation/failures.rb', line 56

def details
  @details
end

#problemObject (readonly)

Returns the value of attribute problem.



56
57
58
# File 'lib/flow/operation/failures.rb', line 56

def problem
  @problem
end