Skip to content

PrintError

This object is filled with information resulting from using PrinterDriver to print.

PrintError supports the toString method.

Properties

code

Error code of the result. An oridinal starts with 0.

Declaration

public ErrorCode getCode();

errorDescription

Description of the error.

Declaration

public String getErrorDescription();

allLogs

Array of all logs that occurred during the operation. See Log.

Declaration

public List<Log> getAllLogs();

Types

ErrorCode

Declaration

public enum ErrorCode {
    NoError,
    PrintSettingsError,
    FilepathURLError,
    PDFPageError,
    PrintSettingsNotSupportError,
    DataBufferError,
    PrinterModelError,
    WorkPathError,
    Canceled,
    ChannelTimeout,
    SetModelError,
    UnsupportedFile,
    SetMarginError,
    SetLabelSizeError,
    CustomPaperSizeError,
    SetLengthError,
    TubeSettingError,
    ChannelErrorStreamStatusError,
    ChannelErrorUnsupportedChannel,
    PrinterStatusErrorPaperEmpty,
    PrinterStatusErrorCoverOpen,
    PrinterStatusErrorBusy,
    PrinterStatusErrorPrinterTurnedOff,
    PrinterStatusErrorBatteryWeak,
    PrinterStatusErrorExpansionBufferFull,
    PrinterStatusErrorCommunicationError,
    PrinterStatusErrorPaperJam,
    PrinterStatusErrorMediaCannotBeFed,
    PrinterStatusErrorOverHeat,
    PrinterStatusErrorHighVoltageAdapter,
    PrinterStatusErrorUnsupportedCharger,
    PrinterStatusErrorIncompatibleOptionalEquipment,
    PrinterStatusErrorUnknownError,
    UnknownError,
    }