Package org.springframework.binding.expression

Examples of org.springframework.binding.expression.EvaluationException


      throw new PropertyNotFoundException(context.getClass(), getExpressionString(), e);
    } catch (OgnlException e) {
      if (e.getReason() instanceof ValueCoercionException) {
        throw (ValueCoercionException) e.getReason();
      } else {
        throw new EvaluationException(context.getClass(), getExpressionString(),
            "An OgnlException occurred getting the value for expression '" + getExpressionString()
                + "' on context [" + context.getClass() + "]", causeFor(e));
      }
    }
  }
View Full Code Here


      throw new PropertyNotFoundException(context.getClass(), getExpressionString(), e);
    } catch (OgnlException e) {
      if (e.getReason() instanceof ValueCoercionException) {
        throw (ValueCoercionException) e.getReason();
      } else {
        throw new EvaluationException(context.getClass(), getExpressionString(),
            "An OgnlException occurred setting the value of expression '" + getExpressionString()
                + "' on context [" + context.getClass() + "] to [" + value + "]", causeFor(e));
      }
    }
  }
View Full Code Here

      // OGNL has no native way to get this information
      return new BeanWrapperImpl(context).getPropertyType(expressionString);
    } catch (InvalidPropertyException e) {
      throw new PropertyNotFoundException(context.getClass(), getExpressionString(), e);
    } catch (BeansException e) {
      throw new EvaluationException(context.getClass(), getExpressionString(),
          "An BeansException occurred getting the value type for expression '" + getExpressionString()
              + "' on context [" + context.getClass() + "]", e);
    }
  }
View Full Code Here

  @SuppressWarnings("unchecked")
  public void setValue(Object context, Object value) throws EvaluationException {
    Object result = getValue(context);
    if (result == null) {
      throw new EvaluationException(context.getClass(), collectionExpression.getExpressionString(),
          "Unable to access collection value for expression '" + collectionExpression.getExpressionString()
              + "'", new IllegalStateException(
              "The collection expression evaluated to a [null] reference"));
    }
    Assert.isInstanceOf(Collection.class, result, "Not a collection: ");
View Full Code Here

TOP

Related Classes of org.springframework.binding.expression.EvaluationException

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.