Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (25 sloc) 1012 Bytes
# -*- coding: utf-8 -*-
#
# This file is part of the python-chess library.
# Copyright (C) 2012 Niklas Fiekas <niklas.fiekas@tu-clausthal.de>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
class FenError(ValueError):
"""Thrown when a FEN string is invalid."""
pass
class PgnError(ValueError):
"""Thrown when a PGN is invalid."""
pass
class MoveError(ValueError):
"""Thrown when a move in invalid."""
Something went wrong with that request. Please try again.