Skip to content

EmptyChoiceError

Bases: ValueError

Raised when a choice object is created, but no arguments are provided.

Source code in src/safeds/exceptions/_ml.py
class EmptyChoiceError(ValueError):
    """Raised when a choice object is created, but no arguments are provided."""

    def __init__(self) -> None:
        super().__init__("Please provide at least one Value in a Choice Parameter")