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
Base exception for calculator errors. |
|
Raised for operation failures (e.g., wrong arity, invalid input). |
|
Raised for registry errors (duplicate or missing name). |
- exception python_project_template_AS.exceptions.CalculatorError[source]#
Bases:
ExceptionBase exception for calculator errors.
- exception python_project_template_AS.exceptions.OperationError[source]#
Bases:
CalculatorErrorRaised for operation failures (e.g., wrong arity, invalid input).
- exception python_project_template_AS.exceptions.RegistryError[source]#
Bases:
CalculatorErrorRaised for registry errors (duplicate or missing name).