Files
py-libp2p/libp2p/transport/quic/exceptions.py
2025-08-30 14:07:31 +05:30

36 lines
756 B
Python

"""
QUIC transport specific exceptions.
"""
from libp2p.exceptions import (
BaseLibp2pError,
)
class QUICError(BaseLibp2pError):
"""Base exception for QUIC transport errors."""
class QUICDialError(QUICError):
"""Exception raised when QUIC dial operation fails."""
class QUICListenError(QUICError):
"""Exception raised when QUIC listen operation fails."""
class QUICConnectionError(QUICError):
"""Exception raised for QUIC connection errors."""
class QUICStreamError(QUICError):
"""Exception raised for QUIC stream errors."""
class QUICConfigurationError(QUICError):
"""Exception raised for QUIC configuration errors."""
class QUICSecurityError(QUICError):
"""Exception raised for QUIC security/TLS errors."""