Exception: Yogo::Operation::Closed::OperationNotClosedError

Inherits:
OperationError
  • Object
show all
Defined in:
lib/yogo/operation/closed/error.rb

Instance Attribute Summary

Attributes inherited from OperationError

#information

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ OperationNotClosedError

Returns a new instance of OperationNotClosedError.



8
9
10
11
12
# File 'lib/yogo/operation/closed/error.rb', line 8

def initialize(options)
  options[:message] ||= "The Operation is not closed! The argument and result of the operation were not of the same type."
  options[:expected_type] ||= options[:argument].class
  super(options)
end