コード例 #1
0
ファイル: mcvadde.py プロジェクト: jon4than/maven-mcidasv
 def __init__(self, ex):
     Exception.__init__(self, ex)
     
     if isinstance(ex, AddeException):
         self.hasErrorCode = ex.hasAddeErrorCode()
         self.addeErrorCode = ex.getAddeErrorCode()
     else:
         self.hasAddeErrorCode = False
         self.addeErrorCode = 0
コード例 #2
0
 def __init__(self, msg, exception=None):
     """Creates an exception. The message is required, but the exception
     is optional."""
     self._msg = msg
     self._exception = exception
     Exception.__init__(self, msg)
コード例 #3
0
ファイル: _exceptions.py プロジェクト: 2014c2g1/2014cadp
 def __init__(self, msg, exception=None):
     """Creates an exception. The message is required, but the exception
     is optional."""
     self._msg = msg
     self._exception = exception
     Exception.__init__(self, msg)
コード例 #4
0
 def __init__(self, msg, exception=None):
     self._msg = msg
     self._exception = exception
     Exception.__init__(self, msg)
コード例 #5
0
 def __init__(self, s):
     Exception.__init__(self, s)
コード例 #6
0
 def __init__(self, details):
     Exception.__init__(self, details)
コード例 #7
0
ファイル: _exceptions.py プロジェクト: mcyril/ravel-ftn
"""Different kinds of SAX Exceptions"""
コード例 #8
0
ファイル: _exceptions.py プロジェクト: mcyril/ravel-ftn
"""Different kinds of SAX Exceptions"""
コード例 #9
0
 def __init__(self, msg, exception = None):
     self._msg = msg
     self._exception = exception
     Exception.__init__(self, msg)