Package it.eng.spagobi.sdk.exceptions

Examples of it.eng.spagobi.sdk.exceptions.MissingParameterValue


        while (it.hasNext()) {
          DataSetParameterItem aDataSetParameterItem = (DataSetParameterItem) it.next();
          SDKDataSetParameter sdkParameter = findRelevantSDKDataSetParameter(aDataSetParameterItem, sdkDataSet);
          if (sdkParameter == null) {
            logger.error("SDKDataSetParameter for DataSetParameterItem with name [" + aDataSetParameterItem.getName() + "] not found!!");
            throw new MissingParameterValue(aDataSetParameterItem.getName());
          }
          String[] values = sdkParameter.getValues();
          logger.debug("Values set for parameter [" + aDataSetParameterItem.getName() + "] are: " + values);
          if (values == null || values.length == 0) {
            logger.error("SDKDataSetParameter contains no values for DataSetParameterItem with name [" + aDataSetParameterItem.getName() + "]!!");
            throw new MissingParameterValue(aDataSetParameterItem.getName());
          }
          checkParameterValues(values, aDataSetParameterItem);
          String parameterValues = getParameterValues(values, aDataSetParameterItem);
          logger.debug("Setting values [" + parameterValues + "] for parameter with name = [" + aDataSetParameterItem.getName() + "]");
          parameters.put(aDataSetParameterItem.getName(), parameterValues);
View Full Code Here


          EMFUserError emfUser=(EMFUserError)error;
          String message="Error on parameter values ";
          if(emfUser.getMessage()!=null) message+=" "+emfUser.getMessage();
          if(emfUser.getAdditionalInfo()!=null) message+=" "+emfUser.getAdditionalInfo();
          logger.error(message);
          throw new MissingParameterValue();
        }
        else if(error instanceof EMFValidationError){
          EMFValidationError emfValidation=(EMFValidationError)error;
          String message="Error while checking parameters: ";
          if(emfValidation.getMessage()!=null) message+=" "+emfValidation.getMessage();
View Full Code Here

          while (it.hasNext()) {
            DataSetParameterItem aDataSetParameterItem = (DataSetParameterItem) it.next();
            SDKDataSetParameter sdkParameter = findRelevantSDKDataSetParameter(aDataSetParameterItem, sdkDataSet);
            if (sdkParameter == null) {
              logger.error("SDKDataSetParameter for DataSetParameterItem with name [" + aDataSetParameterItem.getName() + "] not found!!");
              throw new MissingParameterValue(aDataSetParameterItem.getName());
            }
            String[] values = sdkParameter.getValues();
            logger.debug("Values set for parameter [" + aDataSetParameterItem.getName() + "] are: " + values);
            if (values == null || values.length == 0) {
              logger.error("SDKDataSetParameter contains no values for DataSetParameterItem with name [" + aDataSetParameterItem.getName() + "]!!");
              throw new MissingParameterValue(aDataSetParameterItem.getName());
            }
            checkParameterValues(values, aDataSetParameterItem);
            String parameterValues = getParameterValues(values, aDataSetParameterItem);
            logger.debug("Setting values [" + parameterValues + "] for parameter with name = [" + aDataSetParameterItem.getName() + "]");
            parameters.put(aDataSetParameterItem.getName(), parameterValues);
View Full Code Here

TOP

Related Classes of it.eng.spagobi.sdk.exceptions.MissingParameterValue

Copyright © 2018 www.massapicom. 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.