MWAA / Client / exceptions / RestApiClientException
RestApiClientException#
- class MWAA.Client.exceptions.RestApiClientException#
An exception indicating that a client-side error occurred during the Apache Airflow REST API call.
Example
try: ... except client.exceptions.RestApiClientException 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
{ 'RestApiStatusCode': 123, 'RestApiResponse': {...}|[...]|123|123.4|'string'|True|None, 'Error': { 'Code': 'string', 'Message': 'string' } }
Structure
(dict) –
An exception indicating that a client-side error occurred during the Apache Airflow REST API call.
RestApiStatusCode (integer) –
The HTTP status code returned by the Apache Airflow REST API call.
RestApiResponse (document) –
The error response data from the Apache Airflow REST API call, provided as a JSON object.
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.