Package ch.inftec.ju.util

Examples of ch.inftec.ju.util.JuRuntimeException


      try (ByteArrayOutputStream os = new ByteArrayOutputStream();) {
        transformer.transform(new DOMSource(document), new StreamResult(os));
        return new String(os.toByteArray(), "UTF-8");
      }     
    } catch (Exception ex) {
      throw new JuRuntimeException("Couldn't convert XML to String", ex);
    }
  }
View Full Code Here


      Element rootElement = document.createElement(rootElementName);
      document.appendChild(rootElement);
     
      return new XmlBuilder(null, document, rootElement);
    } catch (Exception ex) {
      throw new JuRuntimeException("Couldn't initialize XML Document");
    }
  }
View Full Code Here

   
    public ApplicationStarter pane(URL paneFxmlUrl) {
      try {
        ApplicationImpl.pane = FXMLLoader.load(paneFxmlUrl);
      } catch (Exception ex) {
        throw new JuRuntimeException("Couldn't launch JavaFX application", ex);
      }
     
      return this;
    }
View Full Code Here

          this.images.put(fullPath, image);
         
          logger.debug(String.format("Loading image (background=%s): %s", loadInBackground, fullPath));
        } catch (Exception ex) {
          logger.error("Couldn't load image: " + fullPath);
          throw new JuRuntimeException("Couldn't load image: " + fullPath, ex);
        }
      }
     
      return this.images.get(fullPath);
    }
View Full Code Here

     
        // Check again
        try {
          Class.forName("javafx.util.Pair");
        } catch (ClassNotFoundException ex3) {
          throw new JuRuntimeException("Still cannot resolve FX objects after adding JAR file", ex3);
        }
        logger.info("Successfully added FX Runtime to classpath");
      } catch (Exception ex2) {
        throw new JuRuntimeException("Couldn't initialize JavaFX classpath", ex2);
      }
    }
  }
View Full Code Here

      FXMLLoader loader = new FXMLLoader(paneFxmlUrl);
      Pane pane = (Pane)loader.load();
      T controller = loader.getController();
      return new PaneInfo<T>(pane, controller);
    } catch (Exception ex) {
      throw new JuRuntimeException("Couldn't load pane from URL " + paneFxmlUrl, ex);
    }
  }
View Full Code Here

   
    try {
      Pane pane = FXMLLoader.load(paneFxmlUrl);
      return JuFxUtils.createJFXPanel(pane, initializer);
    } catch (Exception ex) {
      throw new JuRuntimeException("Couldn't create JFXPanel", ex);
    }
  }
View Full Code Here

   
    if (observer.ex != null) {
      if (observer.ex instanceof Error) {
        throw (Error)observer.ex;
      } else {
        throw new JuRuntimeException("Exception thrown while executing Runnable", observer.ex);
      }
    }
  }
View Full Code Here

        protected void performDbWork(DbWork work) throws SQLException {
          work.execute(conn);
        }
      };
    } catch (Exception ex) {
      throw new JuRuntimeException("Couldn't get Connection from DataSource", ex);
    }
  }
View Full Code Here

        public void execute(Connection connection) {
          try {
            DatabaseMetaData metaData = connection.getMetaData();
            res.setValue(action.processMetaData(metaData));
          } catch (Exception ex) {
            throw new JuRuntimeException("Couldn't get JDBC MetaData", ex);
          }
        }
      });
     
      return res.getValue();
View Full Code Here

TOP

Related Classes of ch.inftec.ju.util.JuRuntimeException

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.