Beispiel #1
0
    def __init__(self, description, errorCode):
        """Create a blpapi exception

        Args:
            description (str): Description of the error
            errorCode (int): Code corresponding to the error
        """
        _StandardException.__init__(self, description, errorCode)
Beispiel #2
0
 def __init__(self,
              message: str = None,
              cause: Exception = None,
              hints=None,
              exitcode: int = 2):
     """
     Constructor
     """
     Exception.__init__(self, message)
     self.__message = message
     self.__cause = cause
     self.__hints = []
     self.__exitcode = exitcode
     if isinstance(hints, str):
         self.__hints.append(hints)
     elif hints is not None:
         self.__hints += hints
Beispiel #3
0
 def __init__(self, description, errorCode):
     _StandardException.__init__(self, description, errorCode)
Beispiel #4
0
 def __init__(self, description, errorCode):
     _StandardException.__init__(self, description, errorCode)
Beispiel #5
0
 def __init__(self, message, status_code=None, payload=None):
     Exception.__init__(self)
     self.message = message
     if status_code is not None:
         self.status_code = status_code
     self.payload = payload