Package it.eng.spago.error

Examples of it.eng.spago.error.EMFErrorHandler.addError()


            .getAttribute(IEngUserProfile.ENG_USER_PROFILE);
        funcdao.eraseLowFunctionality(funct, profile);
      }
    } catch (EMFUserError eex) {
      EMFErrorHandler errorHandler = getErrorHandler();
      errorHandler.addError(eex);
      return;
    } catch (Exception ex) {
      SpagoBITracer.major(AdmintoolsConstants.NAME_MODULE,
          "DetailFunctionalityModule", "delFunctionality",
          "Cannot fill response container", ex);
View Full Code Here


        response.setAttribute(FUNCTIONALITY_OBJ, funct);
      }

    } catch (EMFUserError eex) {
      EMFErrorHandler errorHandler = getErrorHandler();
      errorHandler.addError(eex);
      return;
    } catch (Exception ex) {
      SpagoBITracer.major(AdmintoolsConstants.NAME_MODULE,
          "DetailFunctionalityModule", "newDettaglioFunctionality",
          "Cannot prepare page for the insertion", ex);
View Full Code Here

                TracerSingleton.log(
                    Constants.NOME_MODULO,
                    TracerSingleton.WARNING,
                    "AdapterPortlet::processAction: coordinator nullo !");
                serviceException = new Exception("Coordinatore non trovato");
                emfErrorHandler.addError(
                    new EMFInternalError(
                        EMFErrorSeverity.ERROR,
                        "Coordinatore non trovato !"));
            } // if (coordinator == null)
            else {
View Full Code Here

                        Constants.NOME_MODULO,
                        TracerSingleton.CRITICAL,
                        "AdapterPortlet::processAction:",
                        ex);
                    serviceException = ex;
                    emfErrorHandler.addError(
                        new EMFInternalError(EMFErrorSeverity.ERROR, ex));
                    responseContainer.setAttribute(PORTLET_EXCEPTION, serviceException);
                } // catch (Exception ex)
                 ((RequestContextIFace) coordinator).setRequestContext(null);
            } // if (coordinator == null) else
View Full Code Here

      SpagoBITracer.major(SpagoBIConstants.NAME_MODULE,
                "DetailFunctionalityPublisher",
                "getPublisherName",
                "Module response null");
      EMFUserError error = new EMFUserError(EMFErrorSeverity.ERROR, 10 );
      errorHandler.addError(error);
      return new String("error");
    }
   
   
    // if there are errors and they are only validation errors return the name for the detail publisher
View Full Code Here

  // 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);
      logger.debug("OUT");
      return "error";
  }
  // get the value of the publisher name attribute
  String publisherName = (String) moduleResponse.getAttribute(SpagoBIConstants.PUBLISHER_NAME);
View Full Code Here

      logger.debug("OUT");
      return publisherName;
  } else {
      logger.error("Publisher name attribute not found");
      EMFUserError error = new EMFUserError(EMFErrorSeverity.ERROR, 10);
      errorHandler.addError(error);
      logger.debug("OUT");
      return "error";
  }
    }
View Full Code Here

      SpagoBITracer.major(SpagoBIConstants.NAME_MODULE,
                "DetailMapPublisher",
                "getPublisherName",
                "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
    if(!errorHandler.isOK()) {
View Full Code Here

      SpagoBITracer.major(SpagoBIConstants.NAME_MODULE,
                "DetailFeaturePublisher",
                "getPublisherName",
                "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
    if(!errorHandler.isOK()) {
View Full Code Here

              coordinator = DispatcherManager.getCoordinator(requestContext);
              if (coordinator == null) {
                  TracerSingleton.log(Constants.NOME_MODULO, TracerSingleton.WARNING,
                          "AdapterHTTP::service: coordinator nullo !");
                  serviceException = new Exception("Coordinatore non trovato");
                  emfErrorHandler.addError(new EMFInternalError(EMFErrorSeverity.ERROR,
                          "Coordinatore non trovato !"));
              } // if (coordinator == null)
              else {
                  ((RequestContextIFace) coordinator).setRequestContext(requestContext);
                  responseContainer.setBusinessType(coordinator.getBusinessType());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.