|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.xml.sax.SAXException
org.eclipse.birt.core.framework.parser.XMLParserException
public class XMLParserException
Reports a parse error. Describes errors as codes so that the error text can be localized.
Field Summary | |
---|---|
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 Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.xml.sax.SAXException |
---|
getException, toString |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
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 errorsMethod Detail |
---|
public 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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |