|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.novell.nds.dirxml.shimhost.ConfigException
com.novell.nds.dirxml.shimhost.XMLException
public class XMLException
Base class for exceptions caused by XML parsing. Given a DOM Node that
is an implementation of com.novell.xml.dom.NodeImpl, and assuming that
URI and line number information has been set on the NodeImpl, then this
class will report XML document location information as part of the
detail message.
| Field Summary | |
|---|---|
protected static String |
BAD_ATTRIBUTE_VALUE
|
protected static String |
BAD_BASE64
|
protected static String |
BAD_ELEMENT_CONTENT
|
protected int |
columnNumber
Column number of error location in XML document, if not equal to -1 |
protected int |
lineNumber
Line number of error location in XML document, if not equal to -1 |
protected String |
locationURI
Base URI of XML document if not null |
protected static LocalizedMessageSource |
messageSource
|
protected static String |
MSG_FORMAT
|
protected static String |
MSG_FORMAT_COL
|
protected static String |
MSG_MISSING_ATTRIBUTE
|
protected static String |
MSG_MISSING_ELEMENT
|
| Constructor Summary | |
|---|---|
XMLException(String detail,
Node location)
Constuct an XMLException with the passed detail message
and location information from the passed DOM Node. |
|
XMLException(String msgTag,
Object[] msgParms,
Node location)
Constuct an XMLException with the passed detail message
and location information from the passed DOM Node. |
|
XMLException(String msgTag,
Object[] msgParms,
Throwable cause,
Node location)
Constuct an XMLException with the passed detail message, cause,
and location information from the passed DOM Node. |
|
XMLException(String detail,
Throwable cause,
Node location)
Constuct an XMLException with the passed detail message, cause,
and location information from the passed DOM Node. |
|
XMLException(Throwable cause,
Node location)
Constuct an XMLException with the passed cause and location information
from the passed DOM Node. |
|
| Method Summary | |
|---|---|
String |
getMessage()
Get the detail message for this XMLException. |
protected void |
setLocation(Node location)
Get location information from a DOM Node, if possible. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static LocalizedMessageSource messageSource
protected static final String MSG_FORMAT
protected static final String MSG_FORMAT_COL
protected static final String MSG_MISSING_ELEMENT
protected static final String MSG_MISSING_ATTRIBUTE
protected static final String BAD_ATTRIBUTE_VALUE
protected static final String BAD_BASE64
protected static final String BAD_ELEMENT_CONTENT
protected String locationURI
protected int lineNumber
protected int columnNumber
| Constructor Detail |
|---|
public XMLException(String detail,
Node location)
XMLException with the passed detail message
and location information from the passed DOM Node.
detail - messagelocation - Node from which to obtain XML document location information.
public XMLException(String detail,
Throwable cause,
Node location)
XMLException with the passed detail message, cause,
and location information from the passed DOM Node.
detail - messagecause - underlying cause of errorlocation - Node from which to obtain XML document location information.
public XMLException(Throwable cause,
Node location)
XMLException with the passed cause and location information
from the passed DOM Node.
cause - underlying cause of errorlocation - Node from which to obtain XML document location information.
public XMLException(String msgTag,
Object[] msgParms,
Node location)
XMLException with the passed detail message
and location information from the passed DOM Node.
msgTag - message tag in XMLException propertiesmsgParms - parameters for messagelocation - Node from which to obtain XML document location information.
public XMLException(String msgTag,
Object[] msgParms,
Throwable cause,
Node location)
XMLException with the passed detail message, cause,
and location information from the passed DOM Node.
msgTag - message tag in XMLException propertiesmsgParms - parameters for messagecause - underlying cause of errorlocation - Node from which to obtain XML document location information.| Method Detail |
|---|
public String getMessage()
XMLException. If there is location information
available the detail message will include the location information.
getMessage in class Throwableprotected void setLocation(Node location)
Node, if possible.
location - DOM Node
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||