Package it.eng.spago.error

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


      SpagoBITracer.major(SpagoBIConstants.NAME_MODULE,
                      "BIObjectsPublisher",
                      "getPublisherName",
                      "Module response null");
      EMFUserError error = new EMFUserError(EMFErrorSeverity.ERROR, 10 );
      errorHandler.addError(error);
      return "error";
    }
   
      String publisherName = (String) moduleResponse.getAttribute(SpagoBIConstants.PUBLISHER_NAME );
      if (publisherName != null &&  !publisherName.trim().equals("")) {
View Full Code Here


        SpagoBITracer.major(SpagoBIConstants.NAME_MODULE,
                        "BIObjectsPublisher",
                        "getPublisherName",
                        "Tree module response null");
        EMFUserError error = new EMFUserError(EMFErrorSeverity.ERROR, 10 );
        errorHandler.addError(error);
        return "error";
      }
     
      publisherName = (String) treeModuleResponse.getAttribute(SpagoBIConstants.PUBLISHER_NAME );
      if (publisherName != null &&  !publisherName.trim().equals("")) {
View Full Code Here

        SpagoBITracer.major(SpagoBIConstants.NAME_MODULE,
                  "BIObjectsPublisher",
                  "getPublisherName",
                  "Error would be defining pubName");
        EMFUserError error = new EMFUserError(EMFErrorSeverity.ERROR, 10 );
        errorHandler.addError(error);
        return "error";
      }
    } else {
      pubName = "listBIObjects";
    }
View Full Code Here

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

    if (publisherName == null || publisherName.trim().equals("")) {
      SpagoBITracer.major(SpagoBIConstants.NAME_MODULE,
          this.getClass().getName(), "getPublisherName",
          "Publisher name not set");
      EMFUserError error = new EMFUserError(EMFErrorSeverity.ERROR, 10);
      errorHandler.addError(error);
      return "error";
    } else return publisherName;

  }
View Full Code Here

      // the errors publisher
      //if (executeModuleResponse == null && checklistLookupModule == null) {
      if (executeModuleResponse == null ) {
        logger.error("Module response null");
        EMFUserError error = new EMFUserError(EMFErrorSeverity.ERROR, 10);
        errorHandler.addError(error);
        return new String("error");
      }
     
      // if there are some errors into the errorHandler return the name for
      // the errors publisher
View Full Code Here

            response);
      }

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

      return;
    } catch (Exception ex) {
      EMFInternalError internalError = new EMFInternalError(
          EMFErrorSeverity.ERROR, ex);
      EMFErrorHandler errorHandler = getErrorHandler();
      errorHandler.addError(internalError);
      return;
    }
  }

  /**
 
View Full Code Here

            .loadLowFunctionalityByPath(path, false);
        response.setAttribute(FUNCTIONALITY_OBJ, funct);
      }
    } catch (EMFUserError eex) {
      EMFErrorHandler errorHandler = getErrorHandler();
      errorHandler.addError(eex);
      return;
    } catch (Exception ex) {
      SpagoBITracer.major(AdmintoolsConstants.NAME_MODULE,
          "DetailFunctionalityModule", "getDetailFunctionality",
          "Cannot fill response container", ex);
View Full Code Here

            .deleteInconsistentRoles(set);
      }

    } catch (EMFUserError eex) {
      EMFErrorHandler errorHandler = getErrorHandler();
      errorHandler.addError(eex);
      return;
    } catch (Exception ex) {
      SpagoBITracer.major(AdmintoolsConstants.NAME_MODULE,
          "DetailFunctionalityModule", "modDettaglioFunctionality",
          "Cannot fill response container", ex);
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.