in pyqldb/errors/__init__.py [0:0]
def is_bad_request_exception(e):
"""
Is the exception a BadRequestException?
:type e: :py:class:`builtins.Exception`
:param e: The Exception caught.
:rtype: bool
:return: True if the exception is an BadRequestException. False otherwise.
"""
if isinstance(e, ClientError):
is_bad_request = e.response['Error']['Code'] == "BadRequestException"
return is_bad_request
return False