Exceptions
Custom exceptions for Quick Metric framework.
Domain-specific exceptions with clear error messages and automatic logging.
Classes:
| Name | Description |
|---|---|
MetricMethodError : Base exception for metric method related errors |
|
MethodRegistrationError : Raised when method registration fails |
|
InvalidMethodSignatureError : Raised for invalid method signatures |
|
MetricsMethodNotFoundError : Raised when requested method not found |
|
MethodNotFoundError : Raised when method lookup fails |
|
RegistryLockError : Raised when registry operations fail due to locking |
|
EmptyRegistryError : Raised when operations require non-empty registry |
|
MetricSpecificationError : Raised for invalid metric specifications |
|
MetricMethodError
MethodRegistrationError
Bases: MetricMethodError
Exception raised when method registration fails.
Source code in quick_metric/_exceptions.py
MethodNotFoundError
Bases: MetricMethodError
Exception raised when a requested method is not registered.
Source code in quick_metric/_exceptions.py
MethodExecutionError
Bases: MetricMethodError
Exception raised when a metric method fails during execution.
Source code in quick_metric/_exceptions.py
InvalidMethodSignatureError
Bases: MetricMethodError
Exception raised when method has invalid signature for metric use.
Source code in quick_metric/_exceptions.py
MethodValidationError
Bases: MetricMethodError
Exception raised when method validation fails.
Source code in quick_metric/_exceptions.py
DuplicateMethodWarning
Bases: LoggedException
Warning raised when a method is registered multiple times.
Source code in quick_metric/_exceptions.py
RegistryLockError
Bases: MetricMethodError
Exception raised when registry operations fail due to threading.
Source code in quick_metric/_exceptions.py
EmptyRegistryError
Bases: MetricMethodError
Exception raised when attempting operations on empty registry.
Source code in quick_metric/_exceptions.py
MetricSpecificationError
Bases: ValueError, LoggedException
Exception raised when metric specification is invalid.
Source code in quick_metric/_exceptions.py
MetricsMethodNotFoundError
Bases: MetricMethodError
Exception raised when a specified method is not found in metrics methods.