Community articlegetLocalizationManager method
Added by IBM contributorIBM on July 26, 2013
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

Description

Use this method to obtain the LocalizationManager object. The LocalizationManager object is an interface through which you can set the language the API uses to report errors.

Method

   public static LocalizationManager getLocalizationManager() throws UWIException;


Parameters

There are no parameters for this method.

Returns

The LocalizationManager object or throws a generic exception (UWIException) if an error occurs.

Example

In the following example, the setLanguage method calls getLocalizationManager to obtain the LocalizationManager object called theManager.
   private static void setLanguage() throws Exception
   {
   LocalizationManager theManager;
      theManager = IFSSingleton.getLocalizationManager();
      if(theManager == null)
         throw new Exception("Could not find interface");
      theManager.setDefaultLocale("en_US");
   }


Parent topic:
IFSSingleton class