crandas.errors¶
- exception crandas.errors.BoundsError(message, code=BoundsErrorCode.UNDEFINED)¶
Bases:
Exception
- enum crandas.errors.BoundsErrorCode(value)¶
Bases:
Enum
An enumeration.
Valid values are as follows:
- UNDEFINED = <BoundsErrorCode.UNDEFINED: 0>¶
- MALFORMED_SPEC = <BoundsErrorCode.MALFORMED_SPEC: 1>¶
- INSUFFICIENT_SPEC_MIN = <BoundsErrorCode.INSUFFICIENT_SPEC_MIN: 2>¶
- INSUFFICIENT_SPEC_MAX = <BoundsErrorCode.INSUFFICIENT_SPEC_MAX: 3>¶
- OVERSIZED_SPEC_RANGE = <BoundsErrorCode.OVERSIZED_SPEC_RANGE: 4>¶
- OVERSIZED_DERIVED_RANGE = <BoundsErrorCode.OVERSIZED_DERIVED_RANGE: 5>¶
- exception crandas.errors.EngineError(message, code=EngineErrorCode.INTERNAL_SERVER_ERROR, http_code=None, instance=None, detail=None, **kwargs)¶
Bases:
Exception
- enum crandas.errors.EngineErrorCode(value)¶
Bases:
Enum
An enumeration.
Valid values are as follows:
- INTERNAL_SERVER_ERROR = <EngineErrorCode.INTERNAL_SERVER_ERROR: 0>¶
- DATA_VALUE_ERROR = <EngineErrorCode.DATA_VALUE_ERROR: 1>¶
- METADATA_ERROR = <EngineErrorCode.METADATA_ERROR: 2>¶
- THRESHOLD_NOT_MET = <EngineErrorCode.THRESHOLD_NOT_MET: 3>¶
- RANDOM_ERROR = <EngineErrorCode.RANDOM_ERROR: 4>¶
- ENVIRONMENT_ERROR = <EngineErrorCode.ENVIRONMENT_ERROR: 5>¶
- OBJECT_NOT_FOUND = <EngineErrorCode.OBJECT_NOT_FOUND: 6>¶
- WRONG_OBJECT = <EngineErrorCode.WRONG_OBJECT: 7>¶
- CLIENT_MISMATCH = <EngineErrorCode.CLIENT_MISMATCH: 8>¶
- UNSUPPORTED = <EngineErrorCode.UNSUPPORTED: 9>¶
- NOT_AUTHORIZED = <EngineErrorCode.NOT_AUTHORIZED: 10>¶
- exception crandas.errors.InvalidServerResponse¶
Bases:
RuntimeError
The client has received an invalid response from the server.
- exception crandas.errors.MergeError¶
Bases:
ValueError
Exception raised when merging data.
Subclass of
ValueError
, equivalent to pandas.MergeError
- exception crandas.errors.ModelError¶
Bases:
RuntimeError
Exception raised when an invalid operation is done from a ML/statistical model
- exception crandas.errors.SeriesEncodingError¶
Bases:
RuntimeError
We could not encode the series correctly.