Exception: Chess::BadNotationError
- Inherits:
-
StandardError
- Object
- StandardError
- Chess::BadNotationError
- Defined in:
- lib/chess/exceptions.rb
Overview
This exception will be raised when an invalid short algebraic chess notation string is passed to the Game#move function.
Instance Method Summary collapse
-
#initialize(notation) ⇒ BadNotationError
constructor
A new instance of BadNotationError.
Constructor Details
#initialize(notation) ⇒ BadNotationError
Returns a new instance of BadNotationError.
6 7 8 |
# File 'lib/chess/exceptions.rb', line 6 def initialize(notation) super("Invalid notation '#{notation}'") end |