Exception: SmokeSignals::StackUnwindException
- Inherits:
-
Exception
- Object
- Exception
- SmokeSignals::StackUnwindException
- Defined in:
- lib/smoke_signals.rb
Overview
You should never rescue this exception or any of its subclasses in normal usage. If you do, you should re-raise it. It is raised to unwind the stack and allow ensure blocks to execute as you would expect. Normally, you should not be rescuing Exception, anyway, without re-raising it. A bare rescue clause only rescues StandardError, a subclass of Exception, which is probably what you want.
Direct Known Subclasses
Instance Attribute Summary (collapse)
-
- (Object) nonce
readonly
Returns the value of attribute nonce.
Instance Method Summary (collapse)
-
- (StackUnwindException) initialize(nonce)
constructor
A new instance of StackUnwindException.
Constructor Details
- (StackUnwindException) initialize(nonce)
A new instance of StackUnwindException
32 33 34 35 |
# File 'lib/smoke_signals.rb', line 32 def initialize(nonce) super("This exception is an implementation detail of SmokeSignals. If you're seeing this, either there is a bug in SmokeSignals or you are rescuing a #{self.class} when you shouldn't be. If you rescue this, you should re-raise it.") @nonce = nonce end |
Instance Attribute Details
- (Object) nonce (readonly)
Returns the value of attribute nonce
31 32 33 |
# File 'lib/smoke_signals.rb', line 31 def nonce @nonce end |