Exception: Koltira::Operation::Error

Inherits:
Error
  • Object
show all
Defined in:
lib/koltira/operation.rb

Overview

generic operation error exception class

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, data = {}) ⇒ Error

Returns a new instance of Error.



31
32
33
34
# File 'lib/koltira/operation.rb', line 31

def initialize(message, data = {})
  @data = data
  super(message)
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



29
30
31
# File 'lib/koltira/operation.rb', line 29

def data
  @data
end