Exception: Contender::ExecutionError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/contender/errors.rb

Overview

Raised when attempting to retrieve the result of a task that aborted by raising an exception

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cause) ⇒ undefined

Parameters:

  • cause (Exception)


21
22
23
24
# File 'lib/contender/errors.rb', line 21

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

Instance Attribute Details

#causeException (readonly)

Returns:

  • (Exception)


17
18
19
# File 'lib/contender/errors.rb', line 17

def cause
  @cause
end