Exception: Chess::InvalidPgnFormatError

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

Overview

This exception will be raised when a malformed PGN file is loaded.

Instance Method Summary collapse

Constructor Details

#initialize(filename) ⇒ InvalidPgnFormatError

Returns a new instance of InvalidPgnFormatError.

Parameters:

  • filename (String)

    The PGN filename



15
16
17
# File 'lib/chess/exceptions.rb', line 15

def initialize(filename)
  super("Invalid PGN file '#{filename}'")
end