public class XMLException extends ConfigException
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.Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
BAD_ATTRIBUTE_VALUE |
protected static java.lang.String |
BAD_BASE64 |
protected static java.lang.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 java.lang.String |
locationURI
Base URI of XML document if not null
|
protected static LocalizedMessageSource |
messageSource |
protected static java.lang.String |
MSG_FORMAT |
protected static java.lang.String |
MSG_FORMAT_COL |
protected static java.lang.String |
MSG_MISSING_ATTRIBUTE |
protected static java.lang.String |
MSG_MISSING_ELEMENT |
Constructor and Description |
---|
XMLException(java.lang.String detail,
org.w3c.dom.Node location)
Constuct an
XMLException with the passed detail message
and location information from the passed DOM Node . |
XMLException(java.lang.String msgTag,
java.lang.Object[] msgParms,
org.w3c.dom.Node location)
Constuct an
XMLException with the passed detail message
and location information from the passed DOM Node . |
XMLException(java.lang.String msgTag,
java.lang.Object[] msgParms,
java.lang.Throwable cause,
org.w3c.dom.Node location)
Constuct an
XMLException with the passed detail message, cause,
and location information from the passed DOM Node . |
XMLException(java.lang.String detail,
java.lang.Throwable cause,
org.w3c.dom.Node location)
Constuct an
XMLException with the passed detail message, cause,
and location information from the passed DOM Node . |
XMLException(java.lang.Throwable cause,
org.w3c.dom.Node location)
Constuct an
XMLException with the passed cause and location information
from the passed DOM Node. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMessage()
Get the detail message for this
XMLException . |
protected void |
setLocation(org.w3c.dom.Node location)
Get location information from a DOM
Node , if possible. |
protected static LocalizedMessageSource messageSource
protected static final java.lang.String MSG_FORMAT
protected static final java.lang.String MSG_FORMAT_COL
protected static final java.lang.String MSG_MISSING_ELEMENT
protected static final java.lang.String MSG_MISSING_ATTRIBUTE
protected static final java.lang.String BAD_ATTRIBUTE_VALUE
protected static final java.lang.String BAD_BASE64
protected static final java.lang.String BAD_ELEMENT_CONTENT
protected java.lang.String locationURI
protected int lineNumber
protected int columnNumber
public XMLException(java.lang.String detail, org.w3c.dom.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(java.lang.String detail, java.lang.Throwable cause, org.w3c.dom.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(java.lang.Throwable cause, org.w3c.dom.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(java.lang.String msgTag, java.lang.Object[] msgParms, org.w3c.dom.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(java.lang.String msgTag, java.lang.Object[] msgParms, java.lang.Throwable cause, org.w3c.dom.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.public java.lang.String getMessage()
XMLException
. If there is location information
available the detail message will include the location information.getMessage
in class java.lang.Throwable
protected void setLocation(org.w3c.dom.Node location)
Node
, if possible.location
- DOM Node