python-chess icon indicating copy to clipboard operation
python-chess copied to clipboard

GameBuilder like class that raises errors?

Open Phillyclause89 opened this issue 11 months ago • 0 comments

Hi,

Does this lib have a class like chess.pgn.GameBuilder that raises errors instead of suppressing them? I don't mind making my own child class of GameBuilder that overrides the handle_error method, but if this lib already has an equivalent class then I would rather just use that. Thanks!

class Builder(GameBuilder):
    """Overrides GameBuilder.handle_error to raise exception"""

    def handle_error(self, error: Exception) -> None:
        """

        :rtype: None
        :param error: Exception
        :raises: Exception
        """
        raise error

Phillyclause89 avatar Jan 26 '25 18:01 Phillyclause89