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.



25
26
27
# File 'lib/chess/exceptions.rb', line 25

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