Exception: GreekABC::LetterNotFoundError

Inherits:
GreekABCError
  • Object
show all
Defined in:
lib/greek_abc/errors.rb

Overview

Raised when the passed parameter and value didn’t match any Letter

Instance Method Summary collapse

Constructor Details

#initialize(parameter, value) ⇒ LetterNotFoundError

Returns a new instance of LetterNotFoundError.



15
16
17
# File 'lib/greek_abc/errors.rb', line 15

def initialize(parameter, value)
  super("Letter with `#{parameter}: #{value}` was not found")
end