Error

data class Error(val message: String, val code: String) : Result<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 cancelled.

  • "009": No internet connection.

  • "010": Internal error.

  • "011": Open shift error.

  • "012": Close shift error.

  • "013": Process cheque error.

Constructors

Link copied to clipboard
constructor(message: String, code: String)

Properties

Link copied to clipboard

An error code identifying the type of error.

Link copied to clipboard

A message describing the error.