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.ClientError(message, code=ClientErrorCode.INTERNAL_CLIENT_ERROR)¶
Bases:
RuntimeError
- enum crandas.errors.ClientErrorCode(value)¶
Bases:
Enum
An enumeration.
Valid values are as follows:
- INTERNAL_CLIENT_ERROR = <ClientErrorCode.INTERNAL_CLIENT_ERROR: 0>¶
- ERROR_REGRESSION_CONSTRUCTION = <ClientErrorCode.ERROR_REGRESSION_CONSTRUCTION: 1>¶
- ERROR_REGRESSION_FIT = <ClientErrorCode.ERROR_REGRESSION_FIT: 2>¶
- ERROR_NEIGHBORS_CONSTRUCTION = <ClientErrorCode.ERROR_NEIGHBORS_CONSTRUCTION: 3>¶
- ERROR_NEIGHBORS_FIT = <ClientErrorCode.ERROR_NEIGHBORS_FIT: 4>¶
- ERROR_NEIGHBORS_PREDICT = <ClientErrorCode.ERROR_NEIGHBORS_PREDICT: 5>¶
- exception crandas.errors.InvalidServerResponse¶
Bases:
RuntimeError
The client has received an invalid response from the server.
- exception crandas.errors.SeriesEncodingError¶
Bases:
RuntimeError
We could not encode the series correctly.
- exception crandas.errors.ServerError(message, code=ServerErrorCode.INTERNAL_SERVER_ERROR, http_code=None, **kwargs)¶
Bases:
Exception
- enum crandas.errors.ServerErrorCode(value)¶
Bases:
Enum
An enumeration.
Valid values are as follows:
- INTERNAL_SERVER_ERROR = <ServerErrorCode.INTERNAL_SERVER_ERROR: 0>¶
- CLIENT_ERROR_ANY = <ServerErrorCode.CLIENT_ERROR_ANY: 1>¶
- CLIENT_ERROR_NONUNIQUE_KEY = <ServerErrorCode.CLIENT_ERROR_NONUNIQUE_KEY: 2>¶
- CLIENT_ERROR_THRESHOLD_NOT_MET = <ServerErrorCode.CLIENT_ERROR_THRESHOLD_NOT_MET: 3>¶
- CLIENT_ERROR_OUT_OF_MEMORY = <ServerErrorCode.CLIENT_ERROR_OUT_OF_MEMORY: 4>¶
- CLIENT_ERROR_HANDLE_NOT_FOUND = <ServerErrorCode.CLIENT_ERROR_HANDLE_NOT_FOUND: 5>¶
- CLIENT_ERROR_WRONG_OBJECT_TYPE = <ServerErrorCode.CLIENT_ERROR_WRONG_OBJECT_TYPE: 6>¶
- CLIENT_ERROR_VALIDATE_FAILED = <ServerErrorCode.CLIENT_ERROR_VALIDATE_FAILED: 7>¶
- CLIENT_ERROR_PRSS_KEYS_MISSING = <ServerErrorCode.CLIENT_ERROR_PRSS_KEYS_MISSING: 8>¶
- CLIENT_ERROR_NO_PERSISTENCE = <ServerErrorCode.CLIENT_ERROR_NO_PERSISTENCE: 9>¶
- CLIENT_ERROR_NOT_FOR_NULLABLE = <ServerErrorCode.CLIENT_ERROR_NOT_FOR_NULLABLE: 10>¶
- CLIENT_ERROR_SCHEMA_MISMATCH = <ServerErrorCode.CLIENT_ERROR_SCHEMA_MISMATCH: 11>¶
- CLIENT_ERROR_NAME_NOT_FOUND = <ServerErrorCode.CLIENT_ERROR_NAME_NOT_FOUND: 12>¶