Пример #1
0
    def error(self):
        """
        Additional error information associated with the connection.

        Whenever a connection operation fails (i.e. returns an error code),
        additional error details can be obtained using this property. The
        returned value is the error code defined by Proton in ``pn_error_t``
        (see ``error.h``).
        
        :type: ``int``
        """
        return pn_error_code(pn_connection_error(self._impl))
Пример #2
0
 def error(self):
     return pn_error_code(pn_connection_error(self._impl))
Пример #3
0
 def _check(self, err):
     if err < 0:
         exc = EXCEPTIONS.get(err, ConnectionException)
         raise exc("[%s]: %s" % (err, pn_connection_error(self._impl)))
     else:
         return err
Пример #4
0
 def error(self):
     return pn_error_code(pn_connection_error(self._impl))
Пример #5
0
 def _check(self, err):
     if err < 0:
         exc = EXCEPTIONS.get(err, ConnectionException)
         raise exc("[%s]: %s" % (err, pn_connection_error(self._impl)))
     else:
         return err