Package com.pre.service.exception

Examples of com.pre.service.exception.PREEJBServiceException


    try{
      Division d=new Division();
      d.setCode(code);
      manager.create(d);
    }catch (Exception e) {
      throw new PREEJBServiceException(e.getMessage());
    }
  }
View Full Code Here


  @WebMethod
  public long findByCode(@WebParam(name="code") String code) throws PREEJBServiceException{
    List<Division> ds=manager.findByCode(code);
    if(ds.isEmpty()){
      throw new PREEJBServiceException("No such division code=["+code+"]");
    }
    return ds.get(0).getId();
  }
View Full Code Here

TOP

Related Classes of com.pre.service.exception.PREEJBServiceException

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.