| org.xml.sax.SAXParseException com.hp.hpl.jena.rdf.arp.ParseException
ParseException | public class ParseException extends SAXParseException implements ARPErrorNumbers(Code) | | 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 | |
final int | id |
errorCode | public static int errorCode(String upper)(Code) | | The integer code associated with a string from
ARPErrorNumbers .
Parameters: upper - A field name from ARPErrorNumbers, (in upper case). The integer value or -1, if none. |
formatMessage | public static String formatMessage(Exception e)(Code) | | Calls e.getMessage() and also accesses line and column information for
SAXParseException's.
e.getMessage() possibly prepended by error location information. Parameters: e - The exception to describe. |
getErrorNumber | public int getErrorNumber()(Code) | | The error number (from
ARPErrorNumbers ) related to this
exception.
The error number. |
getMessage | public String getMessage()(Code) | | The message without location information. Use either the formatMessage
method, or the SAXParseException interface, to access the location
information.
The exception message. |
isPromoted | public boolean isPromoted()(Code) | | |
isSyntaxError | public boolean isSyntaxError()(Code) | | Is this error an RDF syntax error.
A syntax error indicates that well-formed XML,
uses RDF properties and attributes, and whitespace
and XML elements, in a way that does not conform with
the RDF/XML Syntax (Revised) specification.
(Currently most such errors have code
ARPErrorNumbers.ERR_SYNTAX_ERROR ,
but this may change in the future).
True if this is a syntax error |
promote | public void promote()(Code) | | Intended for use within an RDFErrorHandler. This method is untested.
Marks the exception to be promoted to be thrown from the parser's entry
method.
|
|
|