Package it.eng.spago.error

Examples of it.eng.spago.error.EMFUserError


      if (expSubObject != null) {
        logger.error("Error while importing exported subobject with name [" + expSubObject.getName() + "] " +
            "of biobject with label [" + exportedObj.getLabel() + "]", e);
      }
      logger.error("Error while getting exported template objects ", e);
      throw new EMFUserError(EMFErrorSeverity.ERROR, "8004", "component_impexp_messages");
    } finally {
      logger.debug("OUT");
    }
  }
View Full Code Here


      SbiBinContents binary = insertBinaryContent(expTemplate.getSbiBinContents());
      newObj.setSbiBinContents(binary);
      sessionCurrDB.save(newObj);
    } catch (Exception he) {
      logger.error("Error while getting exported template objects ", he);
      throw new EMFUserError(EMFErrorSeverity.ERROR, "8004", "component_impexp_messages");
    } finally {
      logger.debug("OUT");
    }
  }
View Full Code Here

    SpagoBITracer.debug(SpagoBIConstants.NAME_MODULE, this.getClass().getName(),"service","begin of detail EventLog service with message = " + message);
   
    EMFErrorHandler errorHandler = getErrorHandler();
    try {
      if (message == null) {
        EMFUserError userError = new EMFUserError(EMFErrorSeverity.ERROR, 101);
        SpagoBITracer.debug(SpagoBIConstants.NAME_MODULE, this.getClass().getName(), "service", "The message parameter is null");
        throw userError;
      }
      String id = (String) request.getAttribute("id");
      if (message.trim().equalsIgnoreCase(AdmintoolsConstants.DETAIL_SELECT)) {
View Full Code Here

      sessionCurrDB.save(newObj);
      return newObj;

    } catch (HibernateException he) {
      logger.error("Error while getting exported binary content objects ", he);
      throw new EMFUserError(EMFErrorSeverity.ERROR, "8004", "component_impexp_messages");
    } finally {
      logger.debug("OUT");
    }
  }
View Full Code Here

        params.put(AdmintoolsConstants.PAGE, "EVENTS_MONITOR_PAGE");
        params.put("REFRESH", "TRUE");
        params.put(LightNavigationManager.LIGHT_NAVIGATOR_BACK_TO, "1");
        Vector v = new Vector();
        v.add(idStr);
        EMFUserError error = new EMFUserError(EMFErrorSeverity.ERROR, 1067, v, params);
        throw error;
      }
      String presentationHandler = event.getHandler();
      SpagoBITracer.debug(SpagoBIConstants.NAME_MODULE, this.getClass().getName(), "getDetailEventLog", "The presentation hanlder for event with id = " + idStr + " is : " + presentationHandler);
      Class presentationHandlerClass = Class.forName(presentationHandler);
      IEventPresentationHandler eventPresentationHanlder = (IEventPresentationHandler) presentationHandlerClass.newInstance();
      eventPresentationHanlder.loadEventInfo(event, response);
    } catch (EMFUserError error) {
      throw error;
    } catch (Exception ex) {
      SpagoBITracer.major(AdmintoolsConstants.NAME_MODULE, this.getClass().getName(), "getDetailEventLog", "Cannot fill response container", ex);
      HashMap params = new HashMap();
      params.put(AdmintoolsConstants.PAGE, "EVENTS_MONITOR_PAGE");
      params.put("REFRESH", "TRUE");
      throw new EMFUserError(EMFErrorSeverity.ERROR, 1065, new Vector(), params);
    }
  }
View Full Code Here

      eventLogDAO.eraseEventLog(eventLog);
    } catch (EMFUserError e){
      HashMap params = new HashMap();
      params.put(AdmintoolsConstants.PAGE, "EVENTS_MONITOR_PAGE");
      params.put("REFRESH", "TRUE");
      throw new EMFUserError(EMFErrorSeverity.ERROR, 1066, new Vector(), params);
    } catch (Exception ex) {
      SpagoBITracer.major(AdmintoolsConstants.NAME_MODULE, this.getClass().getName(), "delDetailEventLog", "Cannot fill response container", ex);
      throw new EMFUserError(EMFErrorSeverity.ERROR, 100);
    }
    response.setAttribute("PUBLISHER_NAME", "deletedEventLogLoopPublisher");
  }
View Full Code Here

    } catch (Exception e) {
      if (paruse != null) {
        logger.error("Error while importing exported parameter use with label [" + paruse.getLabel() + "].", e);
      }
      logger.error("Error while inserting object ", e);
      throw new EMFUserError(EMFErrorSeverity.ERROR, "8004", "component_impexp_messages");
    } finally {
      logger.debug("OUT");
    }
  }
View Full Code Here

      if (parusedet != null) {
        logger.error("Error while importing association between exported parameter use with label [" + parusedet.getId().getSbiParuse().getLabel()
            + "] and exported role with name [" + parusedet.getId().getSbiExtRoles().getName() + "]", e);
      }
      logger.error("Error while inserting object ", e);
      throw new EMFUserError(EMFErrorSeverity.ERROR, "8004", "component_impexp_messages");
    } finally {
      logger.debug("OUT");
    }
  }
View Full Code Here

      if (paruseck != null) {
        logger.error("Error while importing association between exported parameter use with label [" + paruseck.getId().getSbiParuse().getLabel()
            + "] and exported check with label [" + paruseck.getId().getSbiChecks().getLabel() + "]", e);
      }
      logger.error("Error while inserting object ", e);
      throw new EMFUserError(EMFErrorSeverity.ERROR, "8004", "component_impexp_messages");
    } finally {
      logger.debug("OUT");
    }
  }
View Full Code Here

      if (objlink != null) {
        logger.error("Error while importing association between exported master biobject with label [" + objlink.getId().getMasterReport().getLabel()
            + "] and exported sub biobject with label [" + objlink.getId().getSubReport().getLabel() + "]", e);
      }
      logger.error("Error while inserting object ", e);
      throw new EMFUserError(EMFErrorSeverity.ERROR, "8004", "component_impexp_messages");
    } finally {
      logger.debug("OUT");
    }
  }
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.