Error

data class Error(val message: String, val code: String, val exceptionType: SdkExceptionType? = null) : PurchaseResult<Nothing>

Represents an error result of an operation.

Possible error codes: - "001": Print error. - "002": Empty session summary. - "003": Intent parameters' error. - "004": Authentication error. - "005": Merchant offline mode disabled. - "006": Missing invoice. - "007": Purchase failure. - "008": Operation canceled. - "009": No internet connection. - "010": Internal error. - "011": Open shift error. - "012": Close shift error. - "013": Process check error. - "014": Post offline error. - "015": Operation not in queue. - "016": Offline mode is disabled. - "017": Offline failure. - "018": Fiscal failure. - "019": Not fiscalized failure. - "020": Stop transaction not allowed error. - "021": Device SN unavailable. - "022": Operation in progress. - "023": Printer out if paper. - "024": Offline card rules not ready. - "025": Purchase not found.

Constructors

Link copied to clipboard
constructor(message: String, code: String, exceptionType: SdkExceptionType? = null)

Properties

Link copied to clipboard
val code: String

An error code identifying the type of error.

Link copied to clipboard

Error type, null — unknown exception class name.

Link copied to clipboard
val message: String

A message describing the error. The error message format includes the error class name and a description, for example: CandidateNotSelectedException: Candidate not selected. Possible types of errors: AcquiringException, CandidateException, L2Exception.