Package org.springframework.expression

Examples of org.springframework.expression.ExpressionInvocationTargetException


      Throwable rootCause = ae.getCause().getCause();
      if (rootCause instanceof RuntimeException) {
        throw (RuntimeException) rootCause;
      }
      else {
        throw new ExpressionInvocationTargetException(getStartPosition(),
            "A problem occurred when trying to execute method '" + this.name +
            "' on object of type '" + state.getActiveContextObject().getValue().getClass().getName() + "'",
            rootCause);
      }
    }
View Full Code Here


      Throwable rootCause = ae.getCause().getCause();
      if (rootCause instanceof RuntimeException) {
        throw (RuntimeException) rootCause;
      }
      else {
        throw new ExpressionInvocationTargetException(getStartPosition(),
            "A problem occurred when trying to execute method '" + this.name +
            "' on object of type '" + state.getActiveContextObject().getValue().getClass().getName() + "'",
            rootCause);
      }     
    }
View Full Code Here

    if (rootCause!=null) {
      // User exception was the root cause - exit now
      if (rootCause instanceof RuntimeException) {
        throw (RuntimeException)rootCause;
      } else {
        throw new ExpressionInvocationTargetException( getStartPosition(),
            "A problem occurred when trying to execute method '"+this.name+"' on object of type '"+state.getActiveContextObject().getValue().getClass().getName()+"'",
            rootCause);
      }
    }
  }
View Full Code Here

    if (ex.getCause() instanceof InvocationTargetException) {
      Throwable rootCause = ex.getCause().getCause();
      if (rootCause instanceof RuntimeException) {
        throw (RuntimeException) rootCause;
      }
      throw new ExpressionInvocationTargetException(getStartPosition(),
          "A problem occurred when trying to execute method '" + this.name +
          "' on object of type [" + value.getClass().getName() + "]", rootCause);
    }
  }
View Full Code Here

TOP

Related Classes of org.springframework.expression.ExpressionInvocationTargetException

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.