Examples of ExpressionEvaluationException


Examples of org.teiid.api.exception.query.ExpressionEvaluationException

      Object result = null;
        ValueIterator valueIter;
    try {
      valueIter = evaluateSubquery(scalarSubquery, tuple);
    } catch (TeiidProcessingException e) {
      throw new ExpressionEvaluationException(e, e.getMessage());
    }
      if(valueIter.hasNext()) {
          result = valueIter.next();
          if(valueIter.hasNext()) {
              // The subquery should be scalar, but has produced
              // more than one result value - this is an exception case
              throw new ExpressionEvaluationException("ERR.015.006.0058", QueryPlugin.Util.getString("ERR.015.006.0058", scalarSubquery.getCommand())); //$NON-NLS-1$ //$NON-NLS-2$
          }
      }
      return result;
  }
View Full Code Here

Examples of org.teiid.api.exception.query.ExpressionEvaluationException

        // 1-arg form - assume payload is a Properties object
        if(payload instanceof Properties) {
            return ((Properties)payload).getProperty(param);
        }           
        // Payload was bad
        throw new ExpressionEvaluationException(QueryPlugin.Util.getString("ExpressionEvaluator.Expected_props_for_payload_function", "commandPayload", payload.getClass().getName())); //$NON-NLS-1$ //$NON-NLS-2$
    }
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.