ErrorMessages
public class ErrorMessages
Localized error messages. This is a static only class.
-
Default language.
Declaration
Swift
public static let defaultLanguage: String
-
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
Swift
public static func errorMessage(resultCode: CResultCode, terminal: Terminal) -> String
-
Declaration
Swift
public static func errorMessageOrNil(resultCode: CResultCode, terminal: Terminal) -> 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
Swift
public static func errorMessage(resultCode: CResultCode, language: String) -> String
-
Declaration
Swift
public static func errorMessageOrNil(resultCode: CResultCode, language: String) -> String?
-
Logger name for class.
Declaration
Swift
public static let loggerName: String