Package com.six.timapi
Class ErrorMessages
- java.lang.Object
-
- com.six.timapi.ErrorMessages
-
public class ErrorMessages extends Object
Localized error messages. This is a static only class.
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_LANGUAGE
Default language.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getErrorMessage(ResultCode resultCode, Terminal terminal)
Returns the error message matching the supplied ResultCode in the terminal merchant language.static String
getErrorMessage(ResultCode resultCode, String language)
Returns the error message matching the supplied ResultCode in the supplied language.static String
getErrorMessageOrNull(ResultCode resultCode, Terminal terminal)
static String
getErrorMessageOrNull(ResultCode resultCode, String language)
-
-
-
Field Detail
-
DEFAULT_LANGUAGE
public static final String DEFAULT_LANGUAGE
Default language.- See Also:
- Constant Field Values
-
-
Method Detail
-
getErrorMessage
public static String getErrorMessage(ResultCode resultCode, Terminal 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).
-
getErrorMessageOrNull
public static String getErrorMessageOrNull(ResultCode resultCode, Terminal terminal)
-
getErrorMessage
public static String getErrorMessage(ResultCode resultCode, String language)
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"
-
getErrorMessageOrNull
public static String getErrorMessageOrNull(ResultCode resultCode, String language)
-
-