Sha256: a54f85b3a5dbb41785fc0de9eee55e6a76d3194433e3746633a42689b934dca4
Contents?: true
Size: 849 Bytes
Versions: 4
Compression:
Stored size: 849 Bytes
Contents
module Chess # This exception will be raised when an invalid short algebraic chess notation # string is passed to the {Game#move} function. class BadNotationError < StandardError # @param [String] notation The invalid notation. def initialize(notation) super("Invalid notation '#{notation}'") end end # This exception will be raised when a malformed PGN file is loaded. class InvalidPgnFormatError < StandardError # @param [String] filename The PGN filename def initialize(filename) super("Invalid PGN file '#{filename}'") end end # This exception will be raised when an invalid FEN string is used. class InvalidFenFormatError < StandardError # @param [String] fen_string The FEN string. def initialize(fen_string) super("Invalid FEN string '#{fen_string}'") end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
chess-0.2.2 | lib/chess/exceptions.rb |
chess-0.2.1 | lib/chess/exceptions.rb |
chess-0.2.0 | lib/chess/exceptions.rb |
chess-0.1.4 | lib/chess/exceptions.rb |