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


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.


   public static LocalizationManager getLocalizationManager() throws UWIException;


There are no parameters for this method.


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


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");

Parent topic:
IFSSingleton class