The pysnmp.asn1.encoding.ber package - error handling

Components of pysnmp.asn1.encoding.ber package may raise exceptions based on the following classes:

class BerEncodingError([err_msg])

Instances of this class represent an exception occurred in the pysnmp.asn1.encoding.ber code. This is a subclass of pysnmp.asn1.encoding.error.EncodingError class, and a base class for more specific, package-wide exceptions.

class BadArgumentError([err_msg])

Instances of this class represent a bad argument exception occurred in the pysnmp.asn1.encoding.ber code. This is a subclass of BerEncodingError class.

class TypeMismatchError([err_msg])

Instances of this class raised on attempt to decode an object of wrong ASN.1 type (determined by ASN.1 tag). This is a subclass of BerEncodingError class.

class OverFlowError([err_msg])

Instances of this class raised whenever decoded data don't fit their placeholder. This is a subclass of BerEncodingError class.

class UnderRunError([err_msg])

Instances of this class indicate short BER octet stream. This is a subclass of BerEncodingError class.

class BadEncodingError([err_msg])

Instances of this class indicate incorrect BER octet stream. This is a subclass of BerEncodingError class.


Subsections

Neither of the above classes defines additional methods to their base classes.


ilya@glas.net