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 parsing. 021 * 022 * @author Andy Clement 023 * @since 3.0 024 */ 025@SuppressWarnings("serial") 026public class ParseException extends ExpressionException { 027 028 /** 029 * Create a new expression parsing exception. 030 * @param expressionString the expression string that could not be parsed 031 * @param position the position in the expression string where the problem occurred 032 * @param message description of the problem that occurred 033 */ 034 public ParseException(String expressionString, int position, String message) { 035 super(expressionString, position, message); 036 } 037 038 /** 039 * Create a new expression parsing exception. 040 * @param position the position in the expression string where the problem occurred 041 * @param message description of the problem that occurred 042 * @param cause the underlying cause of this exception 043 */ 044 public ParseException(int position, String message, Throwable cause) { 045 super(position, message, cause); 046 } 047 048 /** 049 * Create a new expression parsing exception. 050 * @param position the position in the expression string where the problem occurred 051 * @param message description of the problem that occurred 052 */ 053 public ParseException(int position, String message) { 054 super(position, message); 055 } 056 057}