Exception: Rookout::Exceptions::ToolException

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/rookout/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, parameters = {}, cause = nil) ⇒ ToolException

Returns a new instance of ToolException.



4
5
6
7
8
# File 'lib/rookout/exceptions.rb', line 4

def initialize msg, parameters = {}, cause = nil
  super msg
  @parameters = parameters
  @cause = cause
end

Instance Attribute Details

#parametersObject (readonly)

Returns the value of attribute parameters.



10
11
12
# File 'lib/rookout/exceptions.rb', line 10

def parameters
  @parameters
end