def __init__(self, status, valids): message = "Invalid job status provided. Expected %s, got %s." % (", ".join(valids), status) CustomException.__init__(self, message)
def __init__(self, query: str): message = "Failed to execute the following query: %s" % query CustomException.__init__(self, message)
def __init__(self): message = "No active database connection!" CustomException.__init__(self, message)
def __init__(self, url: str, dbName: str): message = "Connection to database %s at %s failed!" % (url, dbName) CustomException.__init__(self, message)