Skip to content

Exceptions

vkp80iii.exceptions

Exception hierarchy for the vkp80iii package.

VKPError

Bases: Exception

Base class for all errors raised by this library.

Source code in src/vkp80iii/exceptions.py
6
7
class VKPError(Exception):
    """Base class for all errors raised by this library."""

TransportError

Bases: VKPError

A low-level I/O problem talking to the printer (open/read/write).

Source code in src/vkp80iii/exceptions.py
10
11
class TransportError(VKPError):
    """A low-level I/O problem talking to the printer (open/read/write)."""

TransportNotConnected

Bases: TransportError

An operation was attempted before the transport was opened.

Source code in src/vkp80iii/exceptions.py
14
15
class TransportNotConnected(TransportError):
    """An operation was attempted before the transport was opened."""

StatusTimeout

Bases: TransportError

The printer did not answer a real-time status query in time.

Source code in src/vkp80iii/exceptions.py
18
19
class StatusTimeout(TransportError):
    """The printer did not answer a real-time status query in time."""

PrinterError

Bases: VKPError

The printer reported a fault condition (cover open, paper end, ...).

Source code in src/vkp80iii/exceptions.py
22
23
class PrinterError(VKPError):
    """The printer reported a fault condition (cover open, paper end, ...)."""

CommandError

Bases: VKPError

A command was built with an out-of-range or invalid argument.

Source code in src/vkp80iii/exceptions.py
26
27
class CommandError(VKPError):
    """A command was built with an out-of-range or invalid argument."""