Exception: Chess::InvalidPgnFormatError
- Inherits:
-
StandardError
- Object
- StandardError
- Chess::InvalidPgnFormatError
- Defined in:
- lib/chess/exceptions.rb
Overview
This exception will be raised when a malformed PGN file is loaded.
Instance Method Summary collapse
-
#initialize(filename) ⇒ InvalidPgnFormatError
constructor
:nodoc: Create a new exception.
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 |