NiimbotException

Why the printer did not print.

Inheritors

Types

Link copied to clipboard
class LinkLost(val request: Int) : NiimbotException

The link to the printer is gone: a write failed or its notifications ended. Nothing more can be sent.

Link copied to clipboard
class NoResponse(val request: Int) : NiimbotException

The printer did not answer request in time.

Link copied to clipboard
class PrinterFault(val code: Int) : NiimbotException

The printer reported a fault (packet type 0xDB) with this code.

Link copied to clipboard
class Rejected(val request: Int) : NiimbotException

The printer answered a setup request with failure.

Link copied to clipboard
class Unsupported(val request: Int) : NiimbotException

The printer answered that it does not know request.

Properties

Link copied to clipboard
expect open val cause: Throwable?
Link copied to clipboard
expect open val message: String?

Functions

Link copied to clipboard

Classifies why a BLE connection attempt failed, for the connection card. Walks the cause chain and keeps the most specific kind found, so a dropped link whose cause was a refused subscription reads as pairing rather than a drop.