Exception: Chess::InvalidFenFormatError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/chess/exceptions.rb

Overview

This exception will be raised when an invalid FEN string is used.

Instance Method Summary collapse

Constructor Details

#initialize(fen_string) ⇒ InvalidFenFormatError

Returns a new instance of InvalidFenFormatError.

Parameters:

  • fen_string (String)

    The FEN string.



21
22
23
# File 'lib/chess/exceptions.rb', line 21

def initialize(fen_string)
  super("Invalid FEN string '#{fen_string}'")
end