SageMakerRuntime / Client / exceptions / ModelError

ModelError#

class SageMakerRuntime.Client.exceptions.ModelError#

Model (owned by the customer in the container) returned 4xx or 5xx error code.

Example

try:
  ...
except client.exceptions.ModelError as e:
  print(e.response)
response#

The parsed error response. All exceptions have a top level Error key that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.

Syntax

{
    'Message': 'string',
    'OriginalStatusCode': 123,
    'OriginalMessage': 'string',
    'LogStreamArn': 'string',
    'Error': {
        'Code': 'string',
        'Message': 'string'
    }
}

Structure

  • (dict) –

    Model (owned by the customer in the container) returned 4xx or 5xx error code.

    • Message (string) –

    • OriginalStatusCode (integer) –

      Original status code.

    • OriginalMessage (string) –

      Original message.

    • LogStreamArn (string) –

      The Amazon Resource Name (ARN) of the log stream.

    • Error (dict) – Normalized access to common exception attributes.

      • Code (string) – An identifier specifying the exception type.

      • Message (string) – A descriptive message explaining why the exception occured.