boofun.utils.exceptions.ErrorCode
- class boofun.utils.exceptions.ErrorCode(value)[source]
Machine-readable error codes for BooFun exceptions.
Error codes enable programmatic error handling and logging aggregation. Each code maps to a specific error condition.
- Ranges:
E1000-E1999: Validation errors E2000-E2999: Evaluation errors E3000-E3999: Conversion errors E4000-E4999: Configuration errors E5000-E5999: Resource errors E9000-E9999: Internal errors
- __init__(*args, **kwds)
Attributes
- VALIDATION_ERROR = 'E1000'
- INVALID_INPUT = 'E1100'
- INVALID_PARAMETER_VALUE = 'E1101'
- INVALID_PARAMETER_TYPE = 'E1102'
- PARAMETER_OUT_OF_RANGE = 'E1103'
- EMPTY_INPUT = 'E1104'
- INVALID_REPRESENTATION = 'E1200'
- UNKNOWN_REPRESENTATION = 'E1201'
- REPRESENTATION_NOT_AVAILABLE = 'E1202'
- INVALID_TRUTH_TABLE = 'E1300'
- TRUTH_TABLE_WRONG_SIZE = 'E1301'
- TRUTH_TABLE_EMPTY = 'E1302'
- TRUTH_TABLE_INVALID_VALUES = 'E1303'
- EVALUATION_ERROR = 'E2000'
- EVALUATION_FAILED = 'E2001'
- CALLABLE_RAISED = 'E2002'
- INDEX_OUT_OF_BOUNDS = 'E2003'
- CORRUPTED_DATA = 'E2004'
- CONVERSION_ERROR = 'E3000'
- NO_CONVERSION_PATH = 'E3001'
- CONVERSION_FAILED = 'E3002'
- INCOMPATIBLE_REPRESENTATIONS = 'E3003'
- NO_REPRESENTATIONS = 'E3004'
- CONFIGURATION_ERROR = 'E4000'
- INVALID_ERROR_MODEL = 'E4001'
- INCOMPATIBLE_SPACE = 'E4002'
- INVALID_OPTIMIZATION = 'E4003'
- RESOURCE_UNAVAILABLE = 'E5000'
- NUMBA_UNAVAILABLE = 'E5001'
- CUPY_UNAVAILABLE = 'E5002'
- MATPLOTLIB_UNAVAILABLE = 'E5003'
- SCIPY_UNAVAILABLE = 'E5004'
- SYMPY_UNAVAILABLE = 'E5005'
- INTERNAL_ERROR = 'E9000'
- INVARIANT_VIOLATION = 'E9001'
- STATE_CORRUPTION = 'E9002'
- ALGORITHM_ERROR = 'E9003'