python_project_template_AS.exceptions#

Custom exceptions used across the mini calculator package.

All exceptions inherit from CalculatorError so callers may catch the base class for broad error handling. Use the more specific subclasses for programmatic checks in tests or higher-level code.

Exceptions

CalculatorError

Base exception for calculator errors.

OperationError

Raised for operation failures (e.g., wrong arity, invalid input).

RegistryError

Raised for registry errors (duplicate or missing name).

exception python_project_template_AS.exceptions.CalculatorError[source]#

Bases: Exception

Base exception for calculator errors.

exception python_project_template_AS.exceptions.OperationError[source]#

Bases: CalculatorError

Raised for operation failures (e.g., wrong arity, invalid input).

exception python_project_template_AS.exceptions.RegistryError[source]#

Bases: CalculatorError

Raised for registry errors (duplicate or missing name).