Examples of ExpressionInvocationTargetException


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

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

Examples of org.springframework.expression.ExpressionInvocationTargetException

    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

Examples of org.springframework.expression.ExpressionInvocationTargetException

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