Package org.springframework.richclient.settings

Examples of org.springframework.richclient.settings.SettingsException


            settings.load();
            return settings;
        } catch( IncorrectResultSizeDataAccessException e ) {
            return new JdbcSettings( dataSource, userNameProvider.getUser(), null, key );
        } catch( IOException e ) {
            throw new SettingsException( "Unable to create settings with name " + key, e );
        }
    }
View Full Code Here


            file.getParentFile().mkdirs();

      TransformerFactory.newInstance().newTransformer().transform(new DOMSource(settings.getDocument()),
          new StreamResult(new FileOutputStream(file)));
    } catch (TransformerConfigurationException e) {
      throw new SettingsException("Unable to write document", e);
    } catch (TransformerException e) {
      throw new SettingsException("Unable to write document", e);
    } catch (TransformerFactoryConfigurationError e) {
      throw new SettingsException("Unable to write document", e);
    } catch (FileNotFoundException e) {
      throw new SettingsException("Unable to write document", e);
    }
  }
View Full Code Here

      RootXmlSettings settings = new RootXmlSettings(doc, this);

      return settings;
    } catch (SAXException e) {
      throw new SettingsException("Unable to read xml", e);
    } catch (IOException e) {
      throw new SettingsException("Unable to read xml", e);
    } catch (ParserConfigurationException e) {
      throw new SettingsException("Unable to read xml", e);
    } catch (FactoryConfigurationError e) {
      throw new SettingsException("Unable to read xml", e);
    }
  }
View Full Code Here

    try {
      buffer = new StringWriter();
      TransformerFactory.newInstance().newTransformer().transform(new DOMSource(settings.getDocument()),
          new StreamResult(buffer));
    } catch (Exception e) {
      throw new SettingsException("Unable to write xml", e);
    }
  }
View Full Code Here

        doc.appendChild(element);
      }

      return new RootXmlSettings(doc, this);
    } catch (Exception e) {
      throw new SettingsException("Unable to parse xml " + xml, e);
    }
  }
View Full Code Here

TOP

Related Classes of org.springframework.richclient.settings.SettingsException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.