Package it.eng.spago.error

Examples of it.eng.spago.error.EMFUserError


    } catch (HibernateException he) {
      logger.error("Error while getting the objects associated with the data set with id " + dsId, he);
      if (tx != null)
        tx.rollback();
      throw new EMFUserError(EMFErrorSeverity.ERROR, 100);
    } finally {
      if (aSession!=null){
        if (aSession.isOpen()) aSession.close();
      }
    }
View Full Code Here


    } catch (HibernateException he) {
      logger.error("Error while loading the list of SbiDataSet", 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

      tx.commit();
    } catch (HibernateException he) {
      logger.error("Error while getting the objects associated with the data set with id " + dsId, he);
      if (tx != null)
        tx.rollback();
      throw new EMFUserError(EMFErrorSeverity.ERROR, 100);

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

    } catch (HibernateException he) {
      logger.error("Error while loading the data Set with id " + dsId.toString(), he);     
      if (tx != null)
        tx.rollback();
      throw new EMFUserError(EMFErrorSeverity.ERROR, 100);
    } finally {
      if (aSession!=null){
        if (aSession.isOpen()) aSession.close();
        logger.debug("OUT");
      }
View Full Code Here

    } catch (HibernateException he) {
      logger.error("Error while loading the data Set with id " + dsLabel.toString(), he);     
      if (tx != null)
        tx.rollback();
      throw new EMFUserError(EMFErrorSeverity.ERROR, 100);
    } finally {
      if (aSession!=null){
        if (aSession.isOpen()) aSession.close();
        logger.debug("OUT");
      }
View Full Code Here

    } catch (HibernateException he) {
      logger.error("Error while loading the data Set with id " + dsId.toString(), he);     
      if (tx != null)
        tx.rollback();
      throw new EMFUserError(EMFErrorSeverity.ERROR, 100);
    } 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 data set with label " + label, he);
      if (tx != null)
        tx.rollback();
      throw new EMFUserError(EMFErrorSeverity.ERROR, 100);
    } finally {
      if (aSession!=null){
        if (aSession.isOpen()) aSession.close();
      }
    }
View Full Code Here

      }
    } catch (HibernateException he) {
      logger.error("Error while loading all data sets ", he);
      if (tx != null)
        tx.rollback();
      throw new EMFUserError(EMFErrorSeverity.ERROR, 100);
    } finally {
      if (aSession!=null){
        if (aSession.isOpen()) aSession.close();       
      }
    }
View Full Code Here

    String message = (String) request.getAttribute("MESSAGEDET");
    logger.debug("begin of detail Distribution List service with message =" +message);
    EMFErrorHandler errorHandler = getErrorHandler();
    try {
      if (message == null) {
        EMFUserError userError = new EMFUserError(EMFErrorSeverity.ERROR, 101);
        logger.debug("The message parameter is null");
        throw userError;
      }
      logger.debug("The message parameter is: " + message.trim());
      if (message.trim().equalsIgnoreCase(SpagoBIConstants.DETAIL_SELECT)) {
View Full Code Here

    }
    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, 9102, new Vector(), params);
       
    }
      catch (Exception ex) {   
        ex.printStackTrace();
      logger.error("Cannot fill response container" ,ex);
      throw new EMFUserError(EMFErrorSeverity.ERROR, 100);
      }
      response.setAttribute("modality", mod);
      response.setAttribute("DL_ID", id);
      response.setAttribute("EMAIL", email);
      response.setAttribute("dlObj", dl);
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.