286N/A/*
286N/A * reserved comment block
286N/A * DO NOT REMOVE OR ALTER!
286N/A */
286N/A/*
286N/A * Copyright 2001, 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.xni.parser;
286N/A
286N/Aimport com.sun.org.apache.xerces.internal.util.Status;
286N/Aimport com.sun.org.apache.xerces.internal.xni.XNIException;
286N/A
286N/A/**
286N/A * An XNI parser configuration exception. This exception class extends
286N/A * <code>XNIException</code> in order to differentiate between general
286N/A * parsing errors and configuration errors.
286N/A *
286N/A * @author Andy Clark, IBM
286N/A *
286N/A * @version $Id: XMLConfigurationException.java,v 1.7 2010-11-01 04:40:22 joehw Exp $
286N/A */
286N/Apublic class XMLConfigurationException
286N/A extends XNIException {
286N/A
286N/A /** Serialization version. */
286N/A static final long serialVersionUID = -5437427404547669188L;
286N/A
286N/A //
286N/A // Data
286N/A //
286N/A
286N/A /** Exception type. */
286N/A protected Status fType;
286N/A
286N/A /** Identifier. */
286N/A protected String fIdentifier;
286N/A
286N/A //
286N/A // Constructors
286N/A //
286N/A
286N/A /**
286N/A * Constructs a configuration exception with the specified type
286N/A * and feature/property identifier.
286N/A *
286N/A * @param type The type of the exception.
286N/A * @param identifier The feature or property identifier.
286N/A */
286N/A public XMLConfigurationException(Status type, String identifier) {
286N/A super(identifier);
286N/A fType = type;
286N/A fIdentifier = identifier;
286N/A } // <init>(short,String)
286N/A
286N/A /**
286N/A * Constructs a configuration exception with the specified type,
286N/A * feature/property identifier, and error message
286N/A *
286N/A * @param type The type of the exception.
286N/A * @param identifier The feature or property identifier.
286N/A * @param message The error message.
286N/A */
286N/A public XMLConfigurationException(Status type, String identifier,
286N/A String message) {
286N/A super(message);
286N/A fType = type;
286N/A fIdentifier = identifier;
286N/A } // <init>(short,String,String)
286N/A
286N/A //
286N/A // Public methods
286N/A //
286N/A
286N/A /**
286N/A * Returns the exception type.
286N/A */
286N/A public Status getType() {
286N/A return fType;
286N/A } // getType():short
286N/A
286N/A /** Returns the feature or property identifier. */
286N/A public String getIdentifier() {
286N/A return fIdentifier;
286N/A } // getIdentifier():String
286N/A
286N/A} // class XMLConfigurationException