PyAsn1Error¶
ValueConstraintError¶
- class pyasn1.error.ValueConstraintError¶
ASN.1 type constraints violation exception
The ValueConstraintError exception indicates an ASN.1 value constraint violation.
It might happen on value object instantiation (for scalar types) or on serialization (for constructed types).
SubstrateUnderrunError¶
- class pyasn1.error.SubstrateUnderrunError¶
ASN.1 data structure deserialization error
The SubstrateUnderrunError exception indicates insufficient serialised data on input of a de-serialization codec.
PyAsn1UnicodeError¶
- class pyasn1.error.PyAsn1UnicodeError(message, unicode_error=None)¶
Unicode text processing error
The PyAsn1UnicodeError exception is a base class for errors relating to unicode text de/serialization.
Apart from inheriting from
PyAsn1Error
, it also inherits fromUnicodeError
to help the caller catching unicode-related errors.
PyAsn1UnicodeDecodeError¶
- class pyasn1.error.PyAsn1UnicodeDecodeError(message, unicode_error=None)¶
Unicode text decoding error
The PyAsn1UnicodeDecodeError exception represents a failure to deserialize unicode text.
Apart from inheriting from
PyAsn1UnicodeError
, it also inherits fromUnicodeDecodeError
to help the caller catching unicode-related errors.
PyAsn1UnicodeEncodeError¶
- class pyasn1.error.PyAsn1UnicodeEncodeError(message, unicode_error=None)¶
Unicode text encoding error
The PyAsn1UnicodeEncodeError exception represents a failure to serialize unicode text.
Apart from inheriting from
PyAsn1UnicodeError
, it also inherits fromUnicodeEncodeError
to help the caller catching unicode-related errors.