ErrorMessages

public class ErrorMessages

Localized error messages. This is a static only class.

  • Default language.

    Declaration

    Swift

    public static let defaultLanguage: String
  • Get translation for error text matching terminal language. @param resultCode Result code to get error message for. @param terminal Terminal to get language from. You have to call {@link Terminal#systemInformation()} or {@link Terminal#systemInformationAsync()} first to obtain the terminal language. Otherwise the default language is used.

    Declaration

    Swift

    public static func errorMessage(resultCode: CResultCode, terminal: Terminal) -> String
  • Get translation for error text. @param resultCode Result code to get error message for. @param language Language code to get error message for. If no entry for language is found the default error message is returned. Use {@link #DEFAULT_LANGUAGE} to get the default error message.

    Declaration

    Swift

    public static func errorMessage(resultCode: CResultCode, language: String) -> String
  • Logger name for class.

    Declaration

    Swift

    public static let loggerName: String