PrintError

This object has the result in printing by PrinterDriver.

PrintError supports the toString method.

Properties

code

Error code of the result. See ErrorCode.

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,
    PrinterStatusErrorUnknownError,
    UnknownError,
    }