Package ch.inftec.ju.util

Examples of ch.inftec.ju.util.JuRuntimeException


    @Override
    public void doWork(DbWork work) {
      try {
        this.performDbWork(work);
      } catch (Exception ex) {
        throw new JuRuntimeException("Couldn't execute DB work", ex);
      }
    }
View Full Code Here


                  this.queryAttributes.put(mappedName, value);
                }
              }
            }
          } catch (Exception ex) {
            throw new JuRuntimeException("Couldn't introspect bean", ex);
          }
        }
       
        if (xsWhere.isEmpty()) {
          xsWhere.addText("1 = 1");
View Full Code Here

            driver = new HtmlUnitDriver(enableJavaScript);
          } else if ("Chrome".equals(driverType)) {
            System.setProperty("webdriver.chrome.driver", DriverRule.getChromeDriverExePath().toAbsolutePath().toString());
                driver = new ChromeDriver();
          } else {
            throw new JuRuntimeException(String.format("Unsupported selenium driver type: %s. Check value of property %s"
                , driverType
                , PROP_DRIVER));
          }
         
          this.drivers.put(driverType, driver);
View Full Code Here

        }
       
        DriverRule.copiedChromeDriverExe = true;
      }
    } catch (Exception ex) {
      throw new JuRuntimeException("Couldn't copy chromedriver.exe to " + chromeDriverExePath, ex);
    }
   
    return chromeDriverExePath;
  }
View Full Code Here

          driver = new HtmlUnitDriver(enableJavaScript);
        } else if ("Chrome".equals(driverType)) {
          System.setProperty("webdriver.chrome.driver", DriverRule.getChromeDriverExePath().toAbsolutePath().toString());
              driver = new ChromeDriver();
        } else {
          throw new JuRuntimeException(String.format("Unsupported selenium driver type: %s. Check value of property %s"
              , driverType
              , PROP_DRIVER));
        }
       
        this.drivers.put(driverType, driver);
View Full Code Here

        }
       
        DriverRule.copiedChromeDriverExe = true;
      }
    } catch (Exception ex) {
      throw new JuRuntimeException("Couldn't copy chromedriver.exe to " + chromeDriverExePath, ex);
    }
   
    return chromeDriverExePath;
  }
View Full Code Here

      return mapper.writerWithDefaultPrettyPrinter().writeValueAsString(obj);
    } catch (Exception ex) {
      if (logger.isDebugEnabled()) {
        logger.debug("JSON String: " + json);
      }
      throw new JuRuntimeException("Couldn't format JSON (see debug log for JSON String)", ex);
    }
  }
View Full Code Here

          ? mapper.writerWithDefaultPrettyPrinter()
          : mapper.writer();
         
        return writer.writeValueAsString(obj);
      } catch (Exception ex) {
        throw new JuRuntimeException("Marshalling of object to JSON failed", 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.