Class: TimException

timapi.TimException

Contains information about a failed request or method call. TimException is included in the TimEvent. Immutable class.

Overview

Members-Overview

Methods-Overview

Member-List

additionalErrorInfo :Map.<String, String>

Additional error information mapping error text to error type.

errorMessage :String

Returns the error message as transmitted from the terminal. The message language depends on the terminal but will generally be in English. An empty string is returned if the terminal does not send a message.

errorText :String

Error text.
Deprecated:
  • Replaced by errorMessage.

localizedMessage :String

Returns the localised error message in human readable form derived from the error code sent by the terminal. The message will be in the merchant language of the terminal provided systemInformation() has been executed (English otherwise).

ppInfo :timapi.PpInfo

Payment protocol specific information.

printData :timapi.PrintData

Print data, e.g. with declined receipt.

rejectedBasket :timapi.Basket

Rejected basket as modified by host or undefined if absent. Used for guide petrol only.

stack :Object

Stack trace if present or undefined.

Methods

getLocalizedMessage()

Returns the localised error message in human readable form derived from the error code sent by the terminal. The message will be in the language supplied in the parameter. Valid language strings are currently: "en","de","de-AT","de-CH","fr","fr-BE", "fr-CH","it","bg","hr","cs","nl","nl-BE","nl-NL","el","hu","lt","pl","pt", "ro","sk","sl","es","sv","fi","no","da" "de" defaults to "de-CH" "fr" defaults to "fr-CH" "nl" defaults to "nl-BE"

toString() → {String}

Get string representation of exception
Returns:
String representation of exception

Type: String