Exception: ChainReactor::ReactionError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/chain-reactor/reaction.rb

Overview

Raised if there’s an error running a reaction.

This is a simple wrapper around the originally raised exception.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(original_exception) ⇒ ReactionError

Returns a new instance of ReactionError.



8
9
10
11
# File 'lib/chain-reactor/reaction.rb', line 8

def initialize(original_exception)
  @original_exception = original_exception
  super(original_exception.message)
end

Instance Attribute Details

#original_exceptionObject

Returns the value of attribute original_exception.



7
8
9
# File 'lib/chain-reactor/reaction.rb', line 7

def original_exception
  @original_exception
end