List of usage examples for java.util.prefs InvalidPreferencesFormatException getMessage
public String getMessage()
From source file:com.symbian.utils.config.ConfigUtils.java
/** * load the Configuration settings from files. * //from w ww.ja v a 2 s . co m * @param aPrefFile * The Java Preference file to import/load. * * @throws IOException * If the load doesn't work. */ public void importConfig(final File aPrefFile) throws IOException { try { Preferences.importPreferences(new FileInputStream(aPrefFile)); iPrefrences = Preferences.userRoot().node(iNodeName); } catch (FileNotFoundException lFileNotFoundException) { throw new IOException("Cannot create new properties file: " + aPrefFile.getPath() + ": " + lFileNotFoundException.getMessage()); } catch (IOException lIOException) { throw new IOException( "Properties file I/O error: " + aPrefFile.getPath() + ", " + lIOException.getMessage()); } catch (InvalidPreferencesFormatException lIPFE) { throw new IOException( "Prefrences files are not valid: " + aPrefFile.getPath() + ", " + lIPFE.getMessage()); } }