Class ErrorMessages
Localized error messages. This is a static only class.
Inheritance
System.Object
ErrorMessages
Assembly: TimApi.dll
Syntax
public class ErrorMessages : object
Fields
DEFAULT_LANGUAGE
Declaration
public static String DEFAULT_LANGUAGE
Field Value
Methods
GetErrorMessage(ResultCode, Terminal)
Returns the error message matching the supplied ResultCode in the
terminal merchant language.
The message will be in the merchant language of the terminal provided
systemInformation() has been executed (English otherwise).
Declaration
public static string GetErrorMessage(ResultCode resultCode, Terminal terminal)
Parameters
Returns
Type |
Description |
System.String |
|
GetErrorMessage(ResultCode, String)
Returns the error message matching the supplied ResultCode in the supplied language.
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"
Declaration
public static string GetErrorMessage(ResultCode resultCode, string language)
Parameters
Type |
Name |
Description |
ResultCode |
resultCode |
|
System.String |
language |
|
Returns
Type |
Description |
System.String |
|
GetErrorMessageOrNull(ResultCode, Terminal)
Declaration
public static string GetErrorMessageOrNull(ResultCode resultCode, Terminal terminal)
Parameters
Returns
Type |
Description |
System.String |
|
GetErrorMessageOrNull(ResultCode, String)
Declaration
public static string GetErrorMessageOrNull(ResultCode resultCode, string language)
Parameters
Type |
Name |
Description |
ResultCode |
resultCode |
|
System.String |
language |
|
Returns
Type |
Description |
System.String |
|