Exception: SmokeSignals::UnhandledSignalError

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

Overview

This is raised by Condition#signal! if no handler rescues or restarts.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(condition) ⇒ UnhandledSignalError

Returns a new instance of UnhandledSignalError



7
8
9
10
# File 'lib/smoke_signals.rb', line 7

def initialize(condition)
  super('condition was not rescued or restarted by any handlers')
  self.condition = condition
end

Instance Attribute Details

#conditionObject

Returns the value of attribute condition



6
7
8
# File 'lib/smoke_signals.rb', line 6

def condition
  @condition
end