1 /*
2 * Copyright 2002-2013 the original author or authors.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 package org.springframework.expression;
18
19 /**
20 * This exception wraps (as cause) a checked exception thrown by some method that SpEL
21 * invokes. It differs from a SpelEvaluationException because this indicates the
22 * occurrence of a checked exception that the invoked method was defined to throw.
23 * SpelEvaluationExceptions are for handling (and wrapping) unexpected exceptions.
24 *
25 * @author Andy Clement
26 * @since 3.0.3
27 */
28 @SuppressWarnings("serial")
29 public class ExpressionInvocationTargetException extends EvaluationException {
30
31 public ExpressionInvocationTargetException(int position, String message, Throwable cause) {
32 super(position, message, cause);
33 }
34
35 public ExpressionInvocationTargetException(int position, String message) {
36 super(position, message);
37 }
38
39 public ExpressionInvocationTargetException(String expressionString, String message) {
40 super(expressionString, message);
41 }
42
43 public ExpressionInvocationTargetException(String message, Throwable cause) {
44 super(message, cause);
45 }
46
47 public ExpressionInvocationTargetException(String message) {
48 super(message);
49 }
50
51 }