BRLMPrintError

This object has the result in printing by BRLMPrinterDriver.

BRLMPrintError supports the description method.

Properties

code

Error code of the result. See BRLMPrintErrorCode.

Declaration

@property(nonatomic, readonly) BRLMPrintErrorCode code;

errorDescription

Description of the error.

Declaration

@property(nonatomic, readonly) NSString* errorDescription;

allLogs

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

Declaration

@property(nonatomic, readonly) NSArray<BRLMLog*>* allLogs;

Types

BRLMPrintErrorCode

Declaration

typedef NS_ENUM(NSInteger, BRLMPrintErrorCode) {
    BRLMPrintErrorCodeNoError = 0,
    BRLMPrintErrorCodePrintSettingsError,
    BRLMPrintErrorCodeFilepathURLError,
    BRLMPrintErrorCodePDFPageError,
    BRLMPrintErrorCodePrintSettingsNotSupportError,
    BRLMPrintErrorCodeDataBufferError,
    BRLMPrintErrorCodePrinterModelError,
    BRLMPrintErrorCodeCanceled,
    BRLMPrintErrorCodeChannelTimeout,
    BRLMPrintErrorCodeSetModelError,
    BRLMPrintErrorCodeUnsupportedFile,
    BRLMPrintErrorCodeSetMarginError,
    BRLMPrintErrorCodeSetLabelSizeError,
    BRLMPrintErrorCodeCustomPaperSizeError,
    BRLMPrintErrorCodeSetLengthError,
    BRLMPrintErrorCodeTubeSettingError,
    BRLMPrintErrorCodeChannelErrorStreamStatusError,
    BRLMPrintErrorCodeChannelErrorUnsupportedChannel,
    BRLMPrintErrorCodePrinterStatusErrorPaperEmpty,
    BRLMPrintErrorCodePrinterStatusErrorCoverOpen,
    BRLMPrintErrorCodePrinterStatusErrorBusy,
    BRLMPrintErrorCodePrinterStatusErrorPrinterTurnedOff,
    BRLMPrintErrorCodePrinterStatusErrorBatteryWeak,
    BRLMPrintErrorCodePrinterStatusErrorExpansionBufferFull,
    BRLMPrintErrorCodePrinterStatusErrorCommunicationError,
    BRLMPrintErrorCodePrinterStatusErrorPaperJam,
    BRLMPrintErrorCodePrinterStatusErrorMediaCannotBeFed,
    BRLMPrintErrorCodePrinterStatusErrorOverHeat,
    BRLMPrintErrorCodePrinterStatusErrorHighVoltageAdapter,
    BRLMPrintErrorCodePrinterStatusErrorUnknownError,
    BRLMPrintErrorCodeUnknownError,
};