Exception: Synapse::Command::CommandExecutionError

Inherits:
SynapseError
  • Object
show all
Defined in:
lib/synapse/command/errors.rb

Overview

Raised when an error is raised during the handling of a command

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cause) ⇒ undefined

Parameters:

  • cause (Exception)


10
11
12
13
# File 'lib/synapse/command/errors.rb', line 10

def initialize(cause)
  @cause = cause
  set_backtrace cause.backtrace
end

Instance Attribute Details

#causeException (readonly)

Returns:

  • (Exception)


6
7
8
# File 'lib/synapse/command/errors.rb', line 6

def cause
  @cause
end

Instance Method Details

#inspectString

Returns:

  • (String)


16
17
18
# File 'lib/synapse/command/errors.rb', line 16

def inspect
  @cause.inspect
end