Module pipettin-piper.piper.exceptions

Classes

class CommanderError (message='', cmd_id=None, wait=None, check=None, action=None, cause=None)
Expand source code
class CommanderError(Exception):
    """Custom exception to handle errors during protocol parsing."""
    # https://stackoverflow.com/a/1319675
    def __init__(self, message="", cmd_id=None, wait=None, check=None, action=None, cause=None):

        self.__cause__ = cause  # https://stackoverflow.com/a/54768419

        # Call the base class constructor with the parameters it needs
        super().__init__(message)

        # Now for your custom code...
        self.message=message
        self.cmd_id=cmd_id
        self.wait=wait
        self.check=check
        self.action=action

Custom exception to handle errors during protocol parsing.

Ancestors

  • builtins.Exception
  • builtins.BaseException

Subclasses

class DataError (message='', cmd_id=None, wait=None, check=None, action=None, cause=None)
Expand source code
class DataError(CommanderError):
    """Custom exception to handle data errors in try-except clauses."""

Custom exception to handle data errors in try-except clauses.

Ancestors

class NotReadyError (message='', cmd_id=None, wait=None, check=None, action=None, cause=None)
Expand source code
class NotReadyError(CommanderError):
    """Custom exception to handle unready printer states in try-except clauses."""

Custom exception to handle unready printer states in try-except clauses.

Ancestors

class PluginError (message='', cmd_id=None, wait=None, check=None, action=None, cause=None)
Expand source code
class PluginError(CommanderError):
    """Custom exception to handle data errors in try-except clauses."""

Custom exception to handle data errors in try-except clauses.

Ancestors

class ProtocolError (message='', cmd_id=None, wait=None, check=None, action=None, cause=None)
Expand source code
class ProtocolError(CommanderError):
    """Custom exception to handle commander errors in try-except clauses."""

Custom exception to handle commander errors in try-except clauses.

Ancestors