TimException

public class TimException : CustomStringConvertible

Contains information about a failed request or method call. Parameter provided in Errors.timException. Immutable class.

  • Create exception.

    Declaration

    Swift

    public init(resultCode: CResultCode)
  • Create exception.

    Declaration

    Swift

    public init(resultCode: CResultCode,
                errorMessage: String?,
                nativeError: NativeError?,
                ppInfo: PpInfo?,
                additionalErrorInfo: [String:String],
                printData: PrintData?,
                rejectedBasket: Basket?)
  • Contains the result code with the error.

    Declaration

    Swift

    public let resultCode: CResultCode
  • Error message in the ECR language or nil if not present.

    Declaration

    Swift

    public let errorMessage: String?
  • Native error if present or nil if not present.

    Declaration

    Swift

    public let nativeError: NativeError?
  • Payment protocol specific information. Mandatory if any information is given by the underlying payment protocol.

    Declaration

    Swift

    public let ppInfo: PpInfo?
  • Additional error information mapping item text to item text code. Mandatory if any additional error information available.

    Declaration

    Swift

    public let additionalErrorInfo: [String : String]
  • The tag can have two different payloads depending on how the receipt creation and printing is handled. If the terminal creates the receipts itself, PrintData only contains one or multiple tags. If the ECR wishes to create the receipts, the terminal can only send the required that are used in the receipts. This functionality is only available for transaction receipts, not for any admin receipts.

    Optional: Mandatory if declined receipts are enabled and any receipt data available.

    Declaration

    Swift

    public let printData: PrintData?
  • Rejected basket as modified by host or nil if absent. Used for CGuides.petrol only.

    Declaration

    Swift

    public let rejectedBasket: Basket?
  • Textual representation.

    Declaration

    Swift

    public var description: String { get }