sagemaker.core.utils.exceptions#

Exceptions

ConfigSchemaValidationError([file_path, message])

Raised when a configuration file does not adhere to the schema

DeleteFailedStatusError([resource_type, reason])

Raised when a resource enters a delete_failed state.

FailedStatusError([resource_type, status, ...])

Raised when a resource enters a failed state.

IntelligentDefaultsError([message])

Raised when an error occurs in the Intelligent Defaults

LocalConfigNotFoundError([file_path, message])

Raised when a configuration file is not found in local file system

S3ConfigNotFoundError([s3_uri, message])

Raised when a configuration file is not found in S3

SageMakerCoreError(**kwargs)

Base class for all exceptions in SageMaker Core

TimeoutExceededError([resource_type, ...])

Raised when a specified timeout is exceeded

ValidationError([message])

Raised when a validation error occurs.

WaiterError([resource_type, status])

Raised when an error occurs while waiting.

exception sagemaker.core.utils.exceptions.ConfigSchemaValidationError(file_path='(Unkown)', message='')[source]#

Bases: IntelligentDefaultsError, ValidationError

Raised when a configuration file does not adhere to the schema

fmt = 'Failed to validate configuration file from location: {file_path}. {message}'#
exception sagemaker.core.utils.exceptions.DeleteFailedStatusError(resource_type='(Unkown)', reason='(Unkown)')[source]#

Bases: WaiterError

Raised when a resource enters a delete_failed state.

fmt = 'Encountered unexpected delete_failed state while deleting {resource_type}. Failure Reason: {reason}'#
exception sagemaker.core.utils.exceptions.FailedStatusError(resource_type='(Unkown)', status='(Unkown)', reason='(Unkown)')[source]#

Bases: WaiterError

Raised when a resource enters a failed state.

fmt = 'Encountered unexpected failed state while waiting for {resource_type}. Final Resource State: {status}. Failure Reason: {reason}'#
exception sagemaker.core.utils.exceptions.IntelligentDefaultsError(message='', **kwargs)[source]#

Bases: SageMakerCoreError

Raised when an error occurs in the Intelligent Defaults

fmt = 'An error occurred while loading Intelligent Default. {message}'#
exception sagemaker.core.utils.exceptions.LocalConfigNotFoundError(file_path='(Unkown)', message='')[source]#

Bases: IntelligentDefaultsError

Raised when a configuration file is not found in local file system

fmt = 'Failed to load configuration file from location: {file_path}. {message}'#
exception sagemaker.core.utils.exceptions.S3ConfigNotFoundError(s3_uri='(Unkown)', message='')[source]#

Bases: IntelligentDefaultsError

Raised when a configuration file is not found in S3

fmt = 'Failed to load configuration file from S3 location: {s3_uri}. {message}'#
exception sagemaker.core.utils.exceptions.SageMakerCoreError(**kwargs)[source]#

Bases: Exception

Base class for all exceptions in SageMaker Core

fmt = 'An unspecified error occurred.'#
exception sagemaker.core.utils.exceptions.TimeoutExceededError(resource_type='(Unkown)', status='(Unkown)', reason='(Unkown)')[source]#

Bases: WaiterError

Raised when a specified timeout is exceeded

fmt = 'Timeout exceeded while waiting for {resource_type}. Final Resource State: {status}. Increase the timeout and try again.'#
exception sagemaker.core.utils.exceptions.ValidationError(message='', **kwargs)[source]#

Bases: SageMakerCoreError

Raised when a validation error occurs.

fmt = 'An error occurred while validating user input/setup. {message}'#
exception sagemaker.core.utils.exceptions.WaiterError(resource_type='(Unkown)', status='(Unkown)', **kwargs)[source]#

Bases: SageMakerCoreError

Raised when an error occurs while waiting.

fmt = 'An error occurred while waiting for {resource_type}. Final Resource State: {status}.'#