Source code for PyLabware.exceptions

"""PyLabware  exceptions"""


[docs] class PLConnectionError(ConnectionError): """ Generic connection error, base class."""
[docs] class PLConnectionProtocolError(PLConnectionError): """Error in transport protocol."""
[docs] class PLConnectionTimeoutError(PLConnectionError): """Connection timeout error."""
[docs] class PLDeviceError(Exception): """Generic device error, base class."""
[docs] class PLDeviceCommandError(PLDeviceError): """Error in processing device command. This should be any error arising BEFORE the command has been sent to a device. """
[docs] class PLDeviceReplyError(PLDeviceError): """Error in processing device reply. This should be any error arising AFTER the command has been sent to the device. """
[docs] class PLDeviceInternalError(PLDeviceReplyError): """Error returned by device as a response to command. """