Package pyxmpp :: Module exceptions :: Class ProtocolError
[hide private]

Class ProtocolError

source code

              object --+                
                       |                
exceptions.BaseException --+            
                           |            
        exceptions.Exception --+        
                               |        
        exceptions.StandardError --+    
                                   |    
                               Error --+
                                       |
                                      ProtocolError
Known Subclasses:

Raised when there is something wrong with a stanza processed.

When not processed earlier by an application, the exception will be catched by the stanza dispatcher to return XMPP error to the stanza sender, when allowed.

ProtocolErrors handled internally by PyXMPP will be logged via the logging interface. Errors reported to the sender will be logged using "pyxmpp.ProtocolError.reported" channel and the ignored errors using "pyxmpp.ProtocolError.ignored" channel. Both with the "debug" level.

Instance Methods [hide private]
 
__init__(self, xmpp_name, message)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
log_reported(self) source code
 
log_ignored(self) source code
 
__unicode__(self) source code
 
__repr__(self)
repr(x)
source code

Inherited from exceptions.StandardError: __new__

Inherited from exceptions.BaseException: __delattr__, __getattribute__, __getitem__, __getslice__, __reduce__, __setattr__, __setstate__, __str__

Inherited from object: __format__, __hash__, __reduce_ex__, __sizeof__, __subclasshook__

Class Variables [hide private]
  logger_reported = logging.getLogger("pyxmpp.ProtocolError.repo...
  logger_ignored = logging.getLogger("pyxmpp.ProtocolError.ignor...
Instance Variables [hide private]
  xmpp_name
-- XMPP error name which should be reported.
  message
-- the error message.
Properties [hide private]

Inherited from exceptions.BaseException: args

Inherited from object: __class__

Method Details [hide private]

__init__(self, xmpp_name, message)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

__unicode__(self)

source code 
Overrides: exceptions.BaseException.__unicode__

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)

Class Variable Details [hide private]

logger_reported

Value:
logging.getLogger("pyxmpp.ProtocolError.reported")

logger_ignored

Value:
logging.getLogger("pyxmpp.ProtocolError.ignored")

Instance Variable Details [hide private]

xmpp_name

-- XMPP error name which should be reported.
Get Method:
unreachable.xmpp_name(self)

message

-- the error message.
Get Method:
unreachable.message(self)