Exception: Emendate::SeasonLiteralError

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

Instance Method Summary collapse

Constructor Details

#initialize(lexeme) ⇒ SeasonLiteralError

Returns a new instance of SeasonLiteralError.



133
134
135
136
137
138
# File 'lib/emendate/errors.rb', line 133

def initialize(lexeme)
  m = "Cannot assign literal for season value `#{lexeme}`. Dates will not "\
      "be translateable until SeasonAlpha is updated "\
      "to assign the appropriate literal value"
  super(m)
end