Package it.eng.spago.error

Examples of it.eng.spago.error.EMFUserError


    }
    catch (EMFUserError e){
        logger.error("Cannot fill response container" + e.getLocalizedMessage());
        HashMap params = new HashMap();     
        params.put(AdmintoolsConstants.PAGE, ListDistributionListUserModule.MODULE_PAGE);
        throw new EMFUserError(EMFErrorSeverity.ERROR, 9103, new Vector(), params);
       
    }
      catch (Exception ex) {   
        ex.printStackTrace();
      logger.error("Cannot fill response container" ,ex);
      throw new EMFUserError(EMFErrorSeverity.ERROR, 100);
      }
      response.setAttribute("loopback", "true");
   
  }
View Full Code Here


      response.setAttribute("dlObj", dl);
    } catch (Exception ex) {
      logger.error("Cannot fill response container" + ex.getLocalizedMessage())
      HashMap params = new HashMap();
      params.put(AdmintoolsConstants.PAGE, ListDistributionListUserModule.MODULE_PAGE);
      throw new EMFUserError(EMFErrorSeverity.ERROR, 9107, new Vector(), params);
    }
   
  }
View Full Code Here

    SourceBean moduleResponse = (SourceBean)responseContainer.getServiceResponse().getAttribute("DetailDataSourceModule");
   
    // if the module response is null throws an error and return the name of the errors publisher
    if(moduleResponse==null) {
      logger.error("Module response null");
      EMFUserError error = new EMFUserError(EMFErrorSeverity.ERROR, 10 );
      errorHandler.addError(error);     
      return "error";
    }
   
    // if there are errors and they are only validation errors return the name for the detail publisher
View Full Code Here

      logger.error("Error while erasing the distribution list with id " + ((aDistributionList == null)?"":String.valueOf(aDistributionList.getId())), he);

      if (tx != null)
        tx.rollback();

      throw new EMFUserError(EMFErrorSeverity.ERROR, 9101);

    } finally {
      if (aSession!=null){
        if (aSession.isOpen()) aSession.close();
        logger.debug("OUT");
View Full Code Here

      logger.error("Error while erasing Distribution List objects related to the Distribution List "+ ((dl == null)?"":String.valueOf(dl.getId())) , he);
   
      if (tx != null)
        tx.rollback();
   
      throw new EMFUserError(EMFErrorSeverity.ERROR, 9106);
   
    } catch (SourceBeanException e) {
      logger.error("Error while generating Source Bean");
      e.printStackTrace();
    } finally {
View Full Code Here

      logger.error("Error while erasing Distribution List objects with triggername "+ ((triggername == null)?"":triggername) , he);
   
      if (tx != null)
        tx.rollback();
   
      throw new EMFUserError(EMFErrorSeverity.ERROR, 9106);
   
    } catch (SourceBeanException e) {
      logger.error("Error while generating Source Bean");
      e.printStackTrace();
    } finally {
View Full Code Here

      logger.error("Error while inserting the Distribution List with name " + ((aDistributionList == null)?"":String.valueOf(aDistributionList.getName())), he);

      if (tx != null)
        tx.rollback();

      throw new EMFUserError(EMFErrorSeverity.ERROR, 9100);

    } finally {
      if (aSession!=null){
        if (aSession.isOpen()) aSession.close();
        logger.debug("OUT");
View Full Code Here

      logger.error("Error while loading all Distribution Lists ", he);

      if (tx != null)
        tx.rollback();

      throw new EMFUserError(EMFErrorSeverity.ERROR, 9104);

    } finally {
      if (aSession!=null){
        if (aSession.isOpen()) aSession.close();       
      }
View Full Code Here

      logger.error("Error while loading the Distribution List with id " + ((Id == null)?"":Id.toString()), he);     

      if (tx != null)
        tx.rollback();

      throw new EMFUserError(EMFErrorSeverity.ERROR, 9104);

    } finally {
      if (aSession!=null){
        if (aSession.isOpen()) aSession.close();
        logger.debug("OUT");
View Full Code Here

      tx.commit();
    } catch (HibernateException he) {
      logger.error("Error while loading the Distribution List with name " + name, he);
      if (tx != null)
        tx.rollback();
      throw new EMFUserError(EMFErrorSeverity.ERROR, 9104);
    } finally {
      if (tmpSession!=null){
        if (tmpSession.isOpen()) tmpSession.close();
      }
    }
View Full Code Here

TOP

Related Classes of it.eng.spago.error.EMFUserError

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.