Exception: Cutoff::CutoffExceededError
- Inherits:
-
CutoffError
- Object
- StandardError
- CutoffError
- Cutoff::CutoffExceededError
- Defined in:
- lib/cutoff/error.rb
Overview
Raised by #checkpoint! if the time has been exceeded
Instance Attribute Summary collapse
-
#cutoff ⇒ Object
readonly
Returns the value of attribute cutoff.
Instance Method Summary collapse
-
#initialize(cutoff) ⇒ CutoffExceededError
constructor
A new instance of CutoffExceededError.
Constructor Details
#initialize(cutoff) ⇒ CutoffExceededError
Returns a new instance of CutoffExceededError.
21 22 23 24 25 26 27 28 29 |
# File 'lib/cutoff/error.rb', line 21 def initialize(cutoff) @cutoff = cutoff super(( 'Cutoff exceeded', allowed_seconds: cutoff.allowed_seconds, elapsed_seconds: cutoff.elapsed_seconds )) end |
Instance Attribute Details
#cutoff ⇒ Object (readonly)
Returns the value of attribute cutoff.
19 20 21 |
# File 'lib/cutoff/error.rb', line 19 def cutoff @cutoff end |