CloudWatchLogs / Client / exceptions / MalformedQueryException
MalformedQueryException¶
- class CloudWatchLogs.Client.exceptions.MalformedQueryException¶
- The query string is not valid. Details about this error are displayed in a - QueryCompileErrorobject. For more information, see QueryCompileError.- For more information about valid query syntax, see CloudWatch Logs Insights Query Syntax. - Example- try: ... except client.exceptions.MalformedQueryException 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- { 'queryCompileError': { 'location': { 'startCharOffset': 123, 'endCharOffset': 123 }, 'message': 'string' }, 'Error': { 'Code': 'string', 'Message': 'string' } } - Structure- (dict) – - The query string is not valid. Details about this error are displayed in a - QueryCompileErrorobject. For more information, see QueryCompileError.- For more information about valid query syntax, see CloudWatch Logs Insights Query Syntax. - queryCompileError (dict) – - Reserved. - location (dict) – - Reserved. - startCharOffset (integer) – - Reserved. 
- endCharOffset (integer) – - Reserved. 
 
- message (string) – - Reserved. 
 
- 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.