Package it.eng.spago.error

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


      } else if (message.trim().equalsIgnoreCase(AdmintoolsConstants.DETAIL_DEL)) {
        delDettaglioEngine(request, AdmintoolsConstants.DETAIL_DEL, response);
      }

    } catch (EMFUserError eex) {
      errorHandler.addError(eex);
      return;
    } catch (Exception ex) {
      EMFInternalError internalError = new EMFInternalError(EMFErrorSeverity.ERROR, ex);
      errorHandler.addError(internalError);
      return;
View Full Code Here


    } catch (EMFUserError eex) {
      errorHandler.addError(eex);
      return;
    } catch (Exception ex) {
      EMFInternalError internalError = new EMFInternalError(EMFErrorSeverity.ERROR, ex);
      errorHandler.addError(internalError);
      return;
    }
  }
  /**
   * Gets the detail of an engine choosed by the user from the
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

    // if the module response is null throws an error and return the name of the errors publisher
    if(moduleResponse==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

  EMFErrorHandler errorHandler = getErrorHandler();
  try {
      if (message == null) {
    EMFUserError userError = new EMFUserError(EMFErrorSeverity.ERROR, "101", "component_impexp_messages");
    logger.warn("The message parameter is null");
    errorHandler.addError(userError);
    throw userError;
      }
      if (message.trim().equalsIgnoreCase(ImportExportConstants.EXPORT)) {
    exportConf(request, response);
      } else if (message.trim().equalsIgnoreCase(ImportExportConstants.IMPORT)) {
View Full Code Here

      backDataSourceAssociation(request, response);
      } else if (message.trim().equalsIgnoreCase(ImportExportConstants.IMPEXP_BACK_METADATA_ASS)) {
    backMetadataAssociation(request, response);
      }
  } catch (EMFUserError emfu) {
      errorHandler.addError(emfu);
  } catch (Exception ex) {
      logger.error("Error during the service execution", ex);
      EMFUserError error = new EMFUserError(EMFErrorSeverity.ERROR, "100", "component_impexp_messages");
      errorHandler.addError(error);
      return;
View Full Code Here

  } catch (EMFUserError emfu) {
      errorHandler.addError(emfu);
  } catch (Exception ex) {
      logger.error("Error during the service execution", ex);
      EMFUserError error = new EMFUserError(EMFErrorSeverity.ERROR, "100", "component_impexp_messages");
      errorHandler.addError(error);
      return;
  } finally {
      logger.debug("OUT");
  }
    }
View Full Code Here

      EMFErrorHandler errorHandler = responseContainer.getErrorHandler();
    SourceBean moduleResponse = (SourceBean)responseContainer.getServiceResponse().getAttribute("ImportExportModule");
    if(moduleResponse==null) {
      logger.warn( "Module response null");
      EMFUserError error = new EMFUserError(EMFErrorSeverity.ERROR, "10", "component_impexp_messages");
      errorHandler.addError(error);
      logger.warn("OUT. Error");
      return "error";
    }
   
    String pubName = (String)moduleResponse.getAttribute(ImportExportConstants.PUBLISHER_NAME);
View Full Code Here

      SpagoBITracer.major(SpagoBIConstants.NAME_MODULE,
                this.getClass().getName(),
                "getPublisherName",
                "Module response null");
      EMFUserError error = new EMFUserError(EMFErrorSeverity.ERROR, 10);
      errorHandler.addError(error);
      return "error";
    }
   
    // if there are some errors into the errorHandler (not validation errors), return the name for the errors publisher
    if (!errorHandler.isOKBySeverity(EMFErrorSeverity.ERROR)) {
View Full Code Here

      else if (message.trim().equalsIgnoreCase("MOVE_STATE_DOWN")) {
        moveStateDown(request,  response);
        }
     
    } catch (EMFUserError eex) {
      errorHandler.addError(eex);
      return;
    } catch (Exception ex) {
      EMFInternalError internalError = new EMFInternalError(EMFErrorSeverity.ERROR, ex);
      errorHandler.addError(internalError);
      return;
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.