sagemaker.core.exceptions#
Custom exception classes for Sagemaker SDK
Exceptions
|
The base exception class for Async Inference exceptions. |
|
Raised when model returns errors for failed requests |
|
Raised when the automl mode passed into AutoMLStep in invalid |
|
Raised when resource status is not expected and fails with a reason of CapacityError |
|
Raised when invoke_endpoint_with_response_stream Response returns InternalStreamFailure |
|
Raised when invoke_endpoint_with_response_stream Response returns ModelStreamError |
|
Raised when Amazon S3 object not exist in the given path |
|
Raised when wait longer than expected and no result object in Amazon S3 bucket yet |
|
Raised when ClientError's error code is not expected |
|
Raised when resource status is not expected and thus not allowed for further execution |
- exception sagemaker.core.exceptions.AsyncInferenceError(**kwargs)[source]#
Bases:
ExceptionThe base exception class for Async Inference exceptions.
- fmt = 'An unspecified error occurred'#
- exception sagemaker.core.exceptions.AsyncInferenceModelError(message)[source]#
Bases:
AsyncInferenceErrorRaised when model returns errors for failed requests
- fmt = 'Model returned error: {message} '#
- exception sagemaker.core.exceptions.AutoMLStepInvalidModeError(**kwargs)[source]#
Bases:
ExceptionRaised when the automl mode passed into AutoMLStep in invalid
- fmt = 'Mode in AutoMLJobConfig must be defined for AutoMLStep. AutoMLStep currently only supports ENSEMBLING mode'#
- exception sagemaker.core.exceptions.CapacityError(message, allowed_statuses, actual_status)[source]#
Bases:
UnexpectedStatusExceptionRaised when resource status is not expected and fails with a reason of CapacityError
- exception sagemaker.core.exceptions.InternalStreamFailure(message='An error occurred')[source]#
Bases:
ExceptionRaised when invoke_endpoint_with_response_stream Response returns InternalStreamFailure
- exception sagemaker.core.exceptions.ModelStreamError(message='An error occurred', code=None)[source]#
Bases:
ExceptionRaised when invoke_endpoint_with_response_stream Response returns ModelStreamError
- exception sagemaker.core.exceptions.ObjectNotExistedError(message, output_path)[source]#
Bases:
AsyncInferenceErrorRaised when Amazon S3 object not exist in the given path
- fmt = 'Object not exist at {output_path}. {message}'#
- exception sagemaker.core.exceptions.PollingTimeoutError(message, output_path, seconds)[source]#
Bases:
AsyncInferenceErrorRaised when wait longer than expected and no result object in Amazon S3 bucket yet
- fmt = 'No result at {output_path} after polling for {seconds} seconds. {message}'#
- exception sagemaker.core.exceptions.UnexpectedClientError(message)[source]#
Bases:
AsyncInferenceErrorRaised when ClientError’s error code is not expected
- fmt = 'Encountered unexpected client error: {message}'#