PySNMP Project Logo

Project diary
Documentation
Examples
License
Download
Mailing lists

Projects using PySNMP
TwistedSNMP
Zenoss


Relevant projects
SNMPy
YAPSNMP
LibSMI
Scotty software

SourceForge Logo

PySNMP error reporting

The pysnmp.error module defines a set of exception classes used by various PySNMP components to indicate an error whenever occurred.

The exception classes comprise a tree where the top level node -- PySNMPError class should be used to catch any of PySNMP exceptions.

The PySNMPError class subclasses the Exception class from standard Python module exceptions so public attributes of Exception class become available to user of PySNMPError class.

There are three second level subclasses of PySNMPError class, each of them facilitate catching a specific subset of PySNMP errors. These classes are:

  • BEREngineError catches any of BER engine errors
  • SNMPEngineError catches any of SNMP engine errors
  • SNMPError catches any of the errors reported by remote SNMP process by means of SNMP protocol.

The instances of BEREngineError and SNMPEngineError classes do not expose any public attributes.

Please, refer to error.py module whenever it's needed to catch a more specific PySNMP exception.


Need help? Try PySNMP mailing lists.