예제 #1
0
    def __init__(self, msg):
        """
        __init__

        Initialize the error, just accepts a message without error code
        """
        WMException.__init__(self, msg)
        return
예제 #2
0
    def __init__(self, msg):
        """
        __init__

        Initialize the error, just accepts a message without error code
        """
        WMException.__init__(self, msg)
        return
예제 #3
0
 def __init__(self, message):
     WMException.__init__(self, message, 'WMCORE-13')
예제 #4
0
 def __init__(self):
     WMException.__init__(self, 'McM responded correctly but has no data')
예제 #5
0
 def __init__(self, code, name, detail):
     WMException.__init__(self, detail, code)
     self.code = code
     self.name = name
     self.detail = detail
예제 #6
0
 def __init__(self, message):
     WMException.__init__(self, message, 'WMCORE-13')
예제 #7
0
 def __init__(self, message, **data):
     WMException.__init__(self, message, **data)
     self.data.setdefault("ErrorCode", 60313)
     self.data.setdefault("ErrorType", self.__class__.__name__)
예제 #8
0
    def __init__(self, message, **data):
        WMException.__init__(self, message, **data)

        self.data.setdefault("ErrorCode", 60311)
        self.data.setdefault("ErrorType", ErrorDefinitions[60311])
예제 #9
0
파일: McM.py 프로젝트: dciangot/WMCore
 def __init__(self):
     WMException.__init__(self, "McM responded correctly but has no data")
예제 #10
0
    def __init__(self, message, **data):
        WMException.__init__(self, message, **data)

        self.data.setdefault("ErrorCode", 60311)
        self.data.setdefault("ErrorType", ErrorDefinitions[60311])
예제 #11
0
 def __init__(self, code, name, detail):
     WMException.__init__(self, detail, code)
     self.code = code
     self.name = name
     self.detail = detail