public class XMLParserException
extends org.xml.sax.SAXException
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
errorCode
Detailed error description.
|
protected java.util.ArrayList |
errorList
Additional exceptions, if any, associated with the error.
|
static java.lang.String |
EXCEPTION
A generic exception occurred.
|
static java.lang.String |
INVALID_BOOLEAN
A Boolean attribute does not contain a valid value.
|
static java.lang.String |
INVALID_INTEGER
An integer attribute contains an invalid value.
|
protected int |
lineNo
The line of the file on which the error occurred.
|
static java.lang.String |
SAX_ERROR
SAX detected an error with the basic XML syntax of the file.
|
protected org.xml.sax.SAXException |
saxException
The SAX exception, if any, associated with the error.
|
protected java.lang.String |
tag
The element that was in effect at the time of the error.
|
static java.lang.String |
UNKNOWN_TAG
The XML file contains an unsupported element.
|
static java.lang.String |
WARNINGS_FOUND
The parse completed, but recoverable errors occurred.
|
Constructor and Description |
---|
XMLParserException(java.util.ArrayList errors)
Constructor.
|
XMLParserException(java.lang.Exception e)
Constructor.
|
XMLParserException(java.lang.Exception e,
java.lang.String errCode)
Constructor.
|
XMLParserException(org.xml.sax.SAXException e)
Constructor.
|
XMLParserException(java.lang.String errCode)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getErrorCode()
Gets the error code associated with the exception.
|
java.util.List |
getErrorList()
Returns the error list.
|
int |
getLineNumber()
Gets the line number associated with the exception.
|
java.lang.String |
getMessage() |
java.lang.String |
getTag()
Gets the element associated with the exception.
|
void |
setLineNumber(int n)
Sets the line number associated with the exception.
|
void |
setTag(java.lang.String theTag)
Sets the element associated with the exception.
|
protected int lineNo
protected java.lang.String errorCode
protected java.lang.String tag
protected org.xml.sax.SAXException saxException
protected java.util.ArrayList errorList
public static final java.lang.String UNKNOWN_TAG
public static final java.lang.String SAX_ERROR
public static final java.lang.String INVALID_BOOLEAN
public static final java.lang.String WARNINGS_FOUND
public static final java.lang.String EXCEPTION
public static final java.lang.String INVALID_INTEGER
public XMLParserException(java.lang.String errCode)
errCode
- the error codepublic XMLParserException(org.xml.sax.SAXException e)
e
- a SAX exceptionpublic XMLParserException(java.lang.Exception e)
e
- a generic exceptionpublic XMLParserException(java.lang.Exception e, java.lang.String errCode)
e
- generic exceptionerrCode
- error code that explains the exceptionpublic XMLParserException(java.util.ArrayList errors)
errors
- list of errorspublic void setLineNumber(int n)
n
- The line number to set.public void setTag(java.lang.String theTag)
theTag
- the element name to set.public java.lang.String getErrorCode()
public java.lang.String getTag()
public int getLineNumber()
public java.lang.String getMessage()
getMessage
in class org.xml.sax.SAXException
public java.util.List getErrorList()
Copyright © 2014 OpenText Corp. All rights reserved.