Exception: Hoardable::InvalidTemporalUpperBoundError

Inherits:
Error
  • Object
show all
Defined in:
lib/hoardable/error.rb

Overview

An error to be raised when the provided temporal upper bound is before the calcualated lower bound.

Instance Method Summary collapse

Constructor Details

#initialize(upper, lower) ⇒ InvalidTemporalUpperBoundError

Returns a new instance of InvalidTemporalUpperBoundError.



30
31
32
33
34
35
# File 'lib/hoardable/error.rb', line 30

def initialize(upper, lower)
  super(<<~LOG)
      'The supplied value to `Hoardable.travel_to` (#{upper}) is before the calculated lower bound (#{lower}).
      You must provide a datetime > the lower bound.
    LOG
end