Source code for acapy_agent.transport.error

"""Transport-related error classes and codes."""

from ..core.error import BaseError


[docs] class TransportError(BaseError): """Base class for all transport errors."""
[docs] class WireFormatError(TransportError): """Base class for wire-format errors."""
[docs] class WireFormatParseError(WireFormatError): """Parse error when unpacking the wire format.""" error_code = "message_parse_error"
[docs] class WireFormatEncodeError(WireFormatError): """Encoding error when packing the wire format.""" error_code = "message_encode_error"
[docs] class RecipientKeysError(WireFormatError): """Extract recipient keys error."""