x690.exc

This module contains exceptions for the x.690 protocol

exception x690.exc.IncompleteDecoding(message: str, remainder: bytes)

Bases: X690Error

Raised when decoding did not consume all bytes.

The junk bytes are stored in the “remainder” attribute

exception x690.exc.UnexpectedType

Bases: X690Error

Raised when decoding resulted in an unexpected type.

exception x690.exc.X690Error

Bases: Exception

Top-Level exception for everything related to the X690 protocol