"""Custom exceptions raised by this library."""
from typing import Optional
[docs]class StepSeriesException(Exception):
"""Base exception for the library."""
original_exc: Optional[Exception] = None
[docs]class ClientNotFoundError(Exception):
"""The requested client could not be found."""
[docs]class ClientClosedError(Exception):
"""The client's connection is not open."""
[docs]class InvalidCommandError(Exception):
"""The command cannot be executed."""
[docs]class ParseError(StepSeriesException):
"""Failed to parse the message from the device."""
response: str