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:

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.


ilya@glas.net