public class XMLParseException extends SAXParseException
Modifier and Type | Field and Description |
---|---|
static int |
ERROR
Code for non-fatal error
|
static int |
FATAL_ERROR
Code for fatal error
|
static int |
WARNING
Code for warning
|
Constructor and Description |
---|
XMLParseException(java.lang.String mesg, java.lang.String pubId, java.lang.String sysId, int line, int col, int type) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
formatErrorMessage(int i)
Get the error message at specified index
|
int |
getColumnNumber(int i)
Get the column number of error at specified index
|
java.lang.Exception |
getException(int i)
Get the exception (if exists) that occured in error at specified index
|
int |
getLineNumber(int i)
Get the line number of error at specified index
|
java.lang.String |
getMessage(int i)
Get the error message at specified index
|
int |
getMessageType(int i)
Get the type of the error message at specified index
|
int |
getNumMessages()
Return the total number of errors/warnings found during parsing
|
java.lang.String |
getPublicId(int i)
Get the public ID of input when error at specified index occured
|
java.lang.String |
getSystemId(int i)
Get the system ID of input when error at specified index occured
|
getColumnNumber, getLineNumber, getPublicId, getSystemId
getException, getMessage, toString
public static final int ERROR
public static final int FATAL_ERROR
public static final int WARNING
public XMLParseException(java.lang.String mesg, java.lang.String pubId, java.lang.String sysId, int line, int col, int type)
public int getNumMessages()
public java.lang.String getMessage(int i)
public java.lang.String formatErrorMessage(int i)
public int getLineNumber(int i)
public int getColumnNumber(int i)
public java.lang.String getSystemId(int i)
public java.lang.String getPublicId(int i)
public java.lang.Exception getException(int i)
public int getMessageType(int i)