SageMakerGatewayRuntime / Client / exceptions / ModelStreamError
ModelStreamError¶
- class SageMakerGatewayRuntime.Client.exceptions.ModelStreamError¶
Reserved for a model error during the stream. Not currently sent; a failure after the stream starts is reported as InternalStreamFailure.
Example
try: ... except client.exceptions.ModelStreamError as e: print(e.response)
- response¶
The parsed error response. All exceptions have a top level
Errorkey that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.Syntax
{ 'Message': 'string', 'ErrorCode': 'StreamBroken'|'ModelInvocationTimeExceeded', 'Error': { 'Code': 'string', 'Message': 'string' } }
Structure
(dict) –
Reserved for a model error during the stream. Not currently sent; a failure after the stream starts is reported as InternalStreamFailure.
Message (string) –
A description of the error.
ErrorCode (string) –
The error code:
StreamBrokenif the model server’s stream broke before it completed, orModelInvocationTimeExceededif the model exceeded its allowed invocation time.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.