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
:nodoc: Create a new exception.
Constructor Details
#initialize(notation) ⇒ BadNotationError
:nodoc: Create a new exception.
8 9 10 |
# File 'lib/chess/exceptions.rb', line 8 def initialize(notation) super("The notation '#{notation}' is invalid") end |