1 /*
2 * Copyright 2002-2012 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 * Represent an exception that occurs during expression evaluation.
21 *
22 * @author Andy Clement
23 * @since 3.0
24 */
25 @SuppressWarnings("serial")
26 public class EvaluationException extends ExpressionException {
27
28 /**
29 * Creates a new expression evaluation exception.
30 * @param position the position in the expression where the problem occurred
31 * @param message description of the problem that occurred
32 */
33 public EvaluationException(int position, String message) {
34 super(position, message);
35 }
36
37 /**
38 * Creates a new expression evaluation exception.
39 * @param expressionString the expression that could not be evaluated
40 * @param message description of the problem that occurred
41 */
42 public EvaluationException(String expressionString, String message) {
43 super(expressionString, message);
44 }
45
46 /**
47 * Creates a new expression evaluation exception.
48 * @param position the position in the expression where the problem occurred
49 * @param message description of the problem that occurred
50 * @param cause the underlying cause of this exception
51 */
52 public EvaluationException(int position, String message, Throwable cause) {
53 super(position, message, cause);
54 }
55
56 /**
57 * Creates a new expression evaluation exception.
58 * @param message description of the problem that occurred
59 */
60 public EvaluationException(String message) {
61 super(message);
62 }
63
64 public EvaluationException(String message, Throwable cause) {
65 super(message,cause);
66 }
67
68 }