Exception: Emendate::MonthDayError

Inherits:
StandardError
  • Object
show all
Includes:
Module.new
Defined in:
lib/emendate/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(n1, n2, y) ⇒ MonthDayError

Returns a new instance of MonthDayError.



69
70
71
72
73
# File 'lib/emendate/errors.rb', line 69

def initialize(n1, n2, y)
  m = "Cannot determine valid month/date assignment for "\
      "#{n1.literal} and #{n2.literal} with year: #{y.lexeme}"
  super(m)
end