Skip to content

GameBuilder like class that raises errors? #1136

Open
@Phillyclause89

Description

@Phillyclause89

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions