Package it.eng.spago.error

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


    if (publisherName != null && !publisherName.trim().equals("")) {
        return publisherName;
    } else {
      logger.error("Publisher name attribute not found");
        EMFUserError error = new EMFUserError(EMFErrorSeverity.ERROR, 10);
        errorHandler.addError(error);
        return "error";
      }
   
  }
View Full Code Here


        try {
          engine.execute(reqContainer, 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));
        }
   
       } catch (Throwable e) {
              logger.error("Error while executiong KpiEngineJob", e);
View Full Code Here

        modifyDataSource(request, SpagoBIConstants.DETAIL_INS, response);
      } else if (message.trim().equalsIgnoreCase(SpagoBIConstants.DETAIL_DEL)) {
        deleteDataSource(request, SpagoBIConstants.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;
    }
  }
 
  
View Full Code Here

      SpagoBITracer.major(SpagoBIConstants.NAME_MODULE,
                "DetailEnginePublisher",
                "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

        returnToJobDetail(request, response)
      } else if(message.trim().equalsIgnoreCase(SpagoBIConstants.IGNORE_WARNING)) {
        ignoreWarning(request, response)
      }
    } catch (EMFUserError eex) {
      errorHandler.addError(eex);
      return;
    } catch (Exception ex) {
      logger.error("Error while executing schedule service", ex);
      EMFInternalError internalError = new EMFInternalError(EMFErrorSeverity.ERROR, ex);
      errorHandler.addError(internalError);
View Full Code Here

      errorHandler.addError(eex);
      return;
    } catch (Exception ex) {
      logger.error("Error while executing schedule service", ex);
      EMFInternalError internalError = new EMFInternalError(EMFErrorSeverity.ERROR, ex);
      errorHandler.addError(internalError);
      return;
    }
    logger.debug("end of scheuling service =" +message);
  }
 
View Full Code Here

      } else if (message.trim().equalsIgnoreCase(SpagoBIConstants.DETAIL_DEL)) {
        delDetailFeature(serviceRequest, SpagoBIConstants.DETAIL_DEL, serviceResponse);
      }

    } 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;
    }     
  }
 
 
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.