Package it.eng.spago.error

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


                + "'] for internal engine " + eng.getName()
                + " was not found.", cnfe);
            Vector params = new Vector();
            params.add(className);
            params.add(eng.getName());
            errorHandler.addError(new EMFUserError(EMFErrorSeverity.ERROR,
                2001, params));
            return response;
          } catch (Exception e) {
            logger.error("Error while instantiating class " + className, e);
            errorHandler.addError(new EMFUserError(EMFErrorSeverity.ERROR,
View Full Code Here


            errorHandler.addError(new EMFUserError(EMFErrorSeverity.ERROR,
                2001, params));
            return response;
          } catch (Exception e) {
            logger.error("Error while instantiating class " + className, e);
            errorHandler.addError(new EMFUserError(EMFErrorSeverity.ERROR,
                100));
            return response;
          }
          try {
            reqContainer.setAttribute("scheduledExecution", "true");
View Full Code Here

          try {
            reqContainer.setAttribute("scheduledExecution", "true");
            internalEngine.execute(reqContainer, biObject, resp);
          } catch (EMFUserError e) {
            logger.error("Error during engine execution", e);
            errorHandler.addError(e);
          } catch (Exception e) {
            logger.error("Error while engine execution", e);
            errorHandler.addError(new EMFUserError(EMFErrorSeverity.ERROR,
                100));
          }
View Full Code Here

          } catch (EMFUserError e) {
            logger.error("Error during engine execution", e);
            errorHandler.addError(e);
          } catch (Exception e) {
            logger.error("Error while engine execution", e);
            errorHandler.addError(new EMFUserError(EMFErrorSeverity.ERROR,
                100));
          }
          return response;
        }
        else if(eng.getClassName().equals("it.eng.spagobi.engines.chart.SpagoBIChartInternalEngine")){
View Full Code Here


    }
    catch (EMFUserError e) {

      errorHandler.addError(e);

    }
    catch (Exception e) {
      EMFUserError userError = new EMFUserError(EMFErrorSeverity.ERROR, 101);
      logger.error("Generic Error");
View Full Code Here

    }
    catch (Exception e) {
      EMFUserError userError = new EMFUserError(EMFErrorSeverity.ERROR, 101);
      logger.error("Generic Error");
      errorHandler.addError(userError);

    }

  }
View Full Code Here

      SpagoBITracer.major(SpagoBIConstants.NAME_MODULE,
                "DetailBIObjectPublisher",
                "getPublisherName",
                "Module response null");
      EMFUserError error = new EMFUserError(EMFErrorSeverity.ERROR, 10 );
      errorHandler.addError(error);
      //publisher = new String("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);     
      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

    List rowsVector = null;
    if (rowsSourceBean != null)
      rowsVector = rowsSourceBean.getAttributeAsList(DataRow.ROW_TAG);
    if (rowsSourceBean == null) {
      EMFErrorHandler engErrorHandler = serviceRequestContext.getErrorHandler();
      engErrorHandler.addError(new EMFUserError(EMFErrorSeverity.INFORMATION, 10001));
    }
    else
      for (int i = 0; i < rowsVector.size(); i++)
        paginator.addRow(rowsVector.get(i));   
   
View Full Code Here

          //if it's all ok, redirect on login page
          response.sendRedirect(url);
        }                   
      }
    } catch (EMFUserError eex) {
      errorHandler.addError(eex);
      request.setAttribute(SpagoBIConstants.AUTHENTICATION_FAILED_MESSAGE, eex.getDescription());
      getServletContext().getRequestDispatcher(targetJsp).forward(request, response);
      return;
    } catch (Exception ex) {
      EMFInternalError internalError = new EMFInternalError(EMFErrorSeverity.ERROR, 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.