MWAA / Client / exceptions / RestApiServerException
RestApiServerException¶
- class MWAA.Client.exceptions.RestApiServerException¶
- An exception indicating that a server-side error occurred during the Apache Airflow REST API call. - Example- try: ... except client.exceptions.RestApiServerException 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- { 'RestApiStatusCode': 123, 'RestApiResponse': {...}|[...]|123|123.4|'string'|True|None, 'Error': { 'Code': 'string', 'Message': 'string' } } - Structure- (dict) – - An exception indicating that a server-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.