Package net.sf.chellow.monad

Examples of net.sf.chellow.monad.InternalException


                context.getResource(
                    "/WEB-INF/mdd/" + impArray[1] + ".csv")
                    .openStream());
          }
        } catch (SQLException e) {
          throw new InternalException(e);
        } catch (UnsupportedEncodingException e) {
          throw new InternalException(e);
        } catch (MalformedURLException e) {
          throw new InternalException(e);
        } catch (IOException e) {
          throw new InternalException(e);
        } catch (IllegalArgumentException e) {
          throw new InternalException(e);
        } catch (SecurityException e) {
          throw new InternalException(e);
        }
      }
    });

    Hiber.commit();
View Full Code Here


      stmt.executeUpdate("alter table supply_generation alter column hhdc_account set not null");
      stmt.executeUpdate("commit");
      con.setAutoCommit(false);
      con.close();
    } catch (SQLException sqle) {
      throw new InternalException(sqle);
    }
  }
View Full Code Here

  public void update(HhStartDate startDate, HhStartDate finishDate)
      throws InternalException {
    if (finishDate != null
        && startDate.getDate().after(finishDate.getDate())) {
      throw new InternalException(
          "Start date can't be after finish date.");
    }
    setStartDate(startDate);
    setFinishDate(finishDate);
  }
View Full Code Here

  public SnagDateBounded copy() throws InternalException {
    SnagDateBounded cloned;
    try {
      cloned = (SnagDateBounded) super.clone();
    } catch (CloneNotSupportedException e) {
      throw new InternalException(e);
    }
    cloned.setId(null);
    return cloned;
  }
View Full Code Here

              node.appendChild(newNode);
            }
          }
        }
      } catch (SecurityException e) {
        throw new InternalException(e);
      } catch (IllegalArgumentException e) {
        throw new InternalException(e);
      } catch (IllegalAccessException e) {
        throw new InternalException(e);
      } catch (InvocationTargetException e) {
        throw new InternalException(e);
      } catch (NoSuchMethodException e) {
        throw new InternalException(e);
      }
    }
    return node;
  }
View Full Code Here

    }
  }

  public void update(Date date) throws HttpException {
    if (date == null) {
      throw new InternalException("The date may not be null");
    }
    setDate(date);
  }
View Full Code Here

    Properties props = new Properties();
    try {
      props.load(new StringReader(properties));
      setProperties(properties);
    } catch (IOException e) {
      throw new InternalException(e);
    }
  }
View Full Code Here

      while ((c = is.read()) != -1) {
        sr.write(c);
      }
      element.setAttribute("version", sr.toString());
    } catch (UnsupportedEncodingException e) {
      throw new InternalException(e);
    } catch (IOException e) {
      throw new InternalException(e);
    }
    Element propsElement = doc.createElement("properties");
    element.appendChild(propsElement);
    propsElement.setTextContent(properties);
    return element;
View Full Code Here

  public String getProperty(String name) throws HttpException {
    Properties props = new Properties();
    try {
      props.load(new StringReader(properties));
    } catch (IOException e) {
      throw new InternalException(e);
    }
    return props.getProperty(name);
  }
View Full Code Here

      String chargeScript, String properties) throws HttpException {
    super.internalUpdate(name, chargeScript);
    setParty(Provider.getProvider(participant,
        MarketRole.getMarketRole(MarketRole.HHDC)));
    if (properties == null) {
      throw new InternalException("Properties can't be null.");
    }
    setProperties(properties);
  }
View Full Code Here

TOP

Related Classes of net.sf.chellow.monad.InternalException

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.