class Cutoff::CutoffExceededError

Raised by {Cutoff#checkpoint!} if the time has been exceeded

Attributes

cutoff[R]

Public Class Methods

new(cutoff) click to toggle source
Calls superclass method
# File lib/cutoff/error.rb, line 21
def initialize(cutoff)
  @cutoff = cutoff

  super(message_with_meta(
    'Cutoff exceeded',
    allowed_seconds: cutoff.allowed_seconds,
    elapsed_seconds: cutoff.elapsed_seconds
  ))
end