Exception: Yogo::Operation::OperationError

Inherits:
StandardError
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/yogo/operation/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ OperationError

Returns a new instance of OperationError.



12
13
14
15
16
17
18
# File 'lib/yogo/operation/error.rb', line 12

def initialize(options={})
  message = options.delete(:message)
  @information = OpenStruct.new(options)
  @information.freeze
  
  message ? super(message) : super()
end

Instance Attribute Details

#informationObject (readonly)

Returns the value of attribute information.



7
8
9
# File 'lib/yogo/operation/error.rb', line 7

def information
  @information
end