コード例 #1
0
ファイル: __init__.py プロジェクト: a96tudor/Part2Project
    def __init__(self,
                 status,
                 valids):

        message = "Invalid job status provided. Expected %s, got %s." % (", ".join(valids), status)

        CustomException.__init__(self, message)
コード例 #2
0
ファイル: cache.py プロジェクト: a96tudor/Part2Project
    def __init__(self, query: str):

        message = "Failed to execute the following query: %s" % query
        CustomException.__init__(self, message)
コード例 #3
0
ファイル: cache.py プロジェクト: a96tudor/Part2Project
 def __init__(self):
     message = "No active database connection!"
     CustomException.__init__(self, message)
コード例 #4
0
ファイル: cache.py プロジェクト: a96tudor/Part2Project
    def __init__(self, url: str, dbName: str):

        message = "Connection to database %s at %s failed!" % (url, dbName)
        CustomException.__init__(self, message)