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
A new instance of InvalidFenFormatError.
Constructor Details
#initialize(fen_string) ⇒ InvalidFenFormatError
Returns a new instance of InvalidFenFormatError.
21 22 23 |
# File 'lib/chess/exceptions.rb', line 21 def initialize(fen_string) super("Invalid FEN string '#{fen_string}'") end |