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

:nodoc: Create a new exception.



17
18
19
# File 'lib/chess/exceptions.rb', line 17

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