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
A new instance of InvalidPgnFormatError.
Constructor Details
#initialize(filename) ⇒ InvalidPgnFormatError
Returns a new instance of InvalidPgnFormatError.
15 16 17 |
# File 'lib/chess/exceptions.rb', line 15 def initialize(filename) super("Invalid PGN file '#{filename}'") end |