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

: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