286N/A/*
286N/A * reserved comment block
286N/A * DO NOT REMOVE OR ALTER!
286N/A */
286N/A/*
286N/A * Copyright 1999-2002,2004 The Apache Software Foundation.
286N/A *
286N/A * Licensed under the Apache License, Version 2.0 (the "License");
286N/A * you may not use this file except in compliance with the License.
286N/A * You may obtain a copy of the License at
286N/A *
286N/A * http://www.apache.org/licenses/LICENSE-2.0
286N/A *
286N/A * Unless required by applicable law or agreed to in writing, software
286N/A * distributed under the License is distributed on an "AS IS" BASIS,
286N/A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
286N/A * See the License for the specific language governing permissions and
286N/A * limitations under the License.
286N/A */
286N/A
286N/Apackage com.sun.org.apache.xerces.internal.impl.xpath.regex;
286N/A
286N/A/**
286N/A * @xerces.internal
286N/A *
286N/A * @author TAMURA Kent <kent@trl.ibm.co.jp>
286N/A */
286N/Apublic class ParseException extends RuntimeException {
286N/A
286N/A /** Serialization version. */
286N/A static final long serialVersionUID = -7012400318097691370L;
286N/A
286N/A int location;
286N/A
286N/A /*
286N/A public ParseException(String mes) {
286N/A this(mes, -1);
286N/A }
286N/A */
286N/A /**
286N/A *
286N/A */
286N/A public ParseException(String mes, int location) {
286N/A super(mes);
286N/A this.location = location;
286N/A }
286N/A
286N/A /**
286N/A *
286N/A * @return -1 if location information is not available.
286N/A */
286N/A public int getLocation() {
286N/A return this.location;
286N/A }
286N/A}