Exception: NucleusCore::Operation::Context::Error

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of Error.



9
10
11
12
13
# File 'lib/nucleus_core/operation.rb', line 9

def initialize(message, opts={})
  @exception = opts[:exception]

  super(message)
end

Instance Attribute Details

#exceptionObject (readonly)

Returns the value of attribute exception.



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

def exception
  @exception
end