Source code for udsonip.exceptions

"""
Custom exceptions for udsonip library.
"""


[docs] class UDSonIPException(Exception): """Base exception for all udsonip errors.""" pass
[docs] class ConnectionError(UDSonIPException): """Raised when connection to ECU fails.""" pass
[docs] class AddressSwitchError(UDSonIPException): """Raised when switching target address fails.""" pass
[docs] class DiscoveryError(UDSonIPException): """Raised when ECU discovery fails.""" pass
[docs] class SessionError(UDSonIPException): """Raised when session management fails.""" pass
[docs] class ECUNotFoundError(UDSonIPException): """Raised when requested ECU is not found in registry.""" pass