Exception: Chess::InvalidFenFormatError
- Inherits:
-
StandardError
- Object
- StandardError
- Chess::InvalidFenFormatError
- Defined in:
- lib/chess/exceptions.rb
Overview
This exception will be raised when an invalid FEN string is used.
Instance Method Summary collapse
-
#initialize(fen_string) ⇒ InvalidFenFormatError
constructor
:nodoc: Create a new exception.
Constructor Details
#initialize(fen_string) ⇒ InvalidFenFormatError
:nodoc: Create a new exception.
26 27 28 |
# File 'lib/chess/exceptions.rb', line 26 def initialize(fen_string) super("Invalid FEN string: '#{fen_string}'") end |