org.apache.xerces.xni.parser

Class XMLConfigurationException


public class XMLConfigurationException
extends XNIException

An XNI parser configuration exception. This exception class extends XNIException in order to differentiate between general parsing errors and configuration errors.

Version:
$Id: XMLConfigurationException.java,v 1.4 2002/01/29 01:15:19 lehors Exp $

Author:
Andy Clark, IBM

Field Summary

static short
NOT_RECOGNIZED
Exception type: identifier not recognized.
static short
NOT_SUPPORTED
Exception type: identifier not supported.
protected String
fIdentifier
Identifier.
protected short
fType
Exception type.

Constructor Summary

XMLConfigurationException(short type, String identifier)
Constructs a configuration exception with the specified type and feature/property identifier.
XMLConfigurationException(short type, String identifier, String message)
Constructs a configuration exception with the specified type, feature/property identifier, and error message

Method Summary

String
getIdentifier()
Returns the feature or property identifier.
short
getType()
Returns the exception type.

Methods inherited from class org.apache.xerces.xni.XNIException

getException

Field Details

NOT_RECOGNIZED

public static final short NOT_RECOGNIZED
Exception type: identifier not recognized.

Field Value:
0


NOT_SUPPORTED

public static final short NOT_SUPPORTED
Exception type: identifier not supported.

Field Value:
1


fIdentifier

protected String fIdentifier
Identifier.


fType

protected short fType
Exception type.

Constructor Details

XMLConfigurationException

public XMLConfigurationException(short type,
                                 String identifier)
Constructs a configuration exception with the specified type and feature/property identifier.

Parameters:
type - The type of the exception.
identifier - The feature or property identifier.

See Also:
NOT_RECOGNIZED, NOT_SUPPORTED


XMLConfigurationException

public XMLConfigurationException(short type,
                                 String identifier,
                                 String message)
Constructs a configuration exception with the specified type, feature/property identifier, and error message

Parameters:
type - The type of the exception.
identifier - The feature or property identifier.
message - The error message.

See Also:
NOT_RECOGNIZED, NOT_SUPPORTED

Method Details

getIdentifier

public String getIdentifier()
Returns the feature or property identifier.


getType

public short getType()
Returns the exception type.

See Also:
NOT_RECOGNIZED, NOT_SUPPORTED


Copyright B) 1999-2004 Apache XML Project. All Rights Reserved.