|
||||||||||
| 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.xml.sax.SAXParseException
com.hp.hpl.jena.rdf.arp.ParseException
public class ParseException
An exception during the RDF processing of ARP. Note: it is distinguished from an XML related exception from Xerces because while both are SAXParseException's, the latter are not com.hp.hpl.jena.arp.ParseException's.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
ParseException(int id,
com.hp.hpl.jena.rdf.arp.impl.Location where,
Exception e)
|
|
| Method Summary | |
|---|---|
static int |
errorCode(String upper)
The integer code associated with a string from ARPErrorNumbers. |
static String |
errorCodeName(int errNo)
The string from ARPErrorNumbers associated with an integer error code |
static String |
formatMessage(Exception e)
Calls e.getMessage() and also accesses line and column information for SAXParseException's. |
int |
getErrorNumber()
The error number (from ARPErrorNumbers) related to this
exception. |
String |
getMessage()
The message without location information. |
boolean |
isPromoted()
|
boolean |
isSyntaxError()
Is this error an RDF syntax error. |
void |
promote()
Intended for use within an RDFErrorHandler. |
| Methods inherited from class org.xml.sax.SAXParseException |
|---|
getColumnNumber, getLineNumber, getPublicId, getSystemId, toString |
| Methods inherited from class org.xml.sax.SAXException |
|---|
getCause, getException |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ParseException(int id,
com.hp.hpl.jena.rdf.arp.impl.Location where,
Exception e)
| Method Detail |
|---|
public int getErrorNumber()
ARPErrorNumbers) related to this
exception.
public boolean isSyntaxError()
ARPErrorNumbers.ERR_SYNTAX_ERROR,
but this may change in the future).
public void promote()
public String getMessage()
getMessage in class SAXExceptionpublic static String formatMessage(Exception e)
e - The exception to describe.
public boolean isPromoted()
public static String errorCodeName(int errNo)
ARPErrorNumbers associated with an integer error code
errNo - An error code from ARPErrorNumbers.
ARPErrorNumbers with this error number, or nullpublic static int errorCode(String upper)
ARPErrorNumbers.
upper - A field name from ARPErrorNumbers, (in upper case).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||