LINK="#0000bb" VLINK="#551a8b" ALINK="#ff0000">

PySNMP error handling

Almost all of PySNMP modules are designed to report various error conditions in form of Python exceptions. The pysnmp.error module defines a base class for all PySNMP exception classes.

class PySnmpError([err_msg])

Base exception class for all exceptions raised by the The pysnmp modules.

The optional err_str argument (string) may be used to store verbose error message to class instance which may later be returned by PySnmpError._str__() method invocation.