001/* 002 * Copyright 2002-2016 the original author or authors. 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * https://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016 017package org.springframework.expression; 018 019/** 020 * Represent an exception that occurs during expression evaluation. 021 * 022 * @author Andy Clement 023 * @since 3.0 024 */ 025@SuppressWarnings("serial") 026public class EvaluationException extends ExpressionException { 027 028 /** 029 * Create a new expression evaluation exception. 030 * @param message description of the problem that occurred 031 */ 032 public EvaluationException(String message) { 033 super(message); 034 } 035 036 /** 037 * Create a new expression evaluation exception. 038 * @param message description of the problem that occurred 039 * @param cause the underlying cause of this exception 040 */ 041 public EvaluationException(String message, Throwable cause) { 042 super(message,cause); 043 } 044 045 /** 046 * Create a new expression evaluation exception. 047 * @param position the position in the expression where the problem occurred 048 * @param message description of the problem that occurred 049 */ 050 public EvaluationException(int position, String message) { 051 super(position, message); 052 } 053 054 /** 055 * Create a new expression evaluation exception. 056 * @param expressionString the expression that could not be evaluated 057 * @param message description of the problem that occurred 058 */ 059 public EvaluationException(String expressionString, String message) { 060 super(expressionString, message); 061 } 062 063 /** 064 * Create a new expression evaluation exception. 065 * @param position the position in the expression where the problem occurred 066 * @param message description of the problem that occurred 067 * @param cause the underlying cause of this exception 068 */ 069 public EvaluationException(int position, String message, Throwable cause) { 070 super(position, message, cause); 071 } 072 073}