import json


def rule(event):
    if any(
        [
            "DataError" in json.dumps(event.to_dict()),
            "IntegrityError" in json.dumps(event.to_dict()),
            "ProgrammingError" in json.dumps(event.to_dict()),
            "OperationalError" in json.dumps(event.to_dict()),
        ]
    ):
        return True
    return False
