| java.lang.Object java.lang.Throwable java.lang.Exception org.openrdf.OpenRDFException org.openrdf.rio.RDFParseException
RDFParseException | public class RDFParseException extends OpenRDFException (Code) | | A parse exception that can be thrown by a parser when it encounters an error
from which it cannot or doesn't want to recover.
|
Method Summary | |
public int | getColumnNumber() Gets the column number associated with this parse exception. | public int | getLineNumber() Gets the line number associated with this parse exception. | public static String | getLocationString(int lineNo, int columnNo) Creates a string to that shows the specified line and column number.
Negative line numbers are interpreted as unknowns. |
RDFParseException | public RDFParseException(String msg)(Code) | | Creates a new ParseException.
Parameters: msg - An error message. |
RDFParseException | public RDFParseException(String msg, int lineNo, int columnNo)(Code) | | Creates a new ParseException.
Parameters: msg - An error message. Parameters: lineNo - A line number associated with the message. Parameters: columnNo - A column number associated with the message. |
RDFParseException | public RDFParseException(Throwable t)(Code) | | Creates a new ParseException wrapping another exception. The
ParseException will inherit its message from the supplied source
exception.
Parameters: t - The source exception. |
RDFParseException | public RDFParseException(Throwable t, int lineNo, int columnNo)(Code) | | Creates a new ParseException wrapping another exception. The
ParseException will inherit its message from the supplied source
exception.
Parameters: t - The source exception. Parameters: lineNo - A line number associated with the message. Parameters: columnNo - A column number associated with the message. |
getColumnNumber | public int getColumnNumber()(Code) | | Gets the column number associated with this parse exception.
A column number, or -1 if no column number is available orapplicable. |
getLineNumber | public int getLineNumber()(Code) | | Gets the line number associated with this parse exception.
A line number, or -1 if no line number is available or applicable. |
getLocationString | public static String getLocationString(int lineNo, int columnNo)(Code) | | Creates a string to that shows the specified line and column number.
Negative line numbers are interpreted as unknowns. Example output: "[line
12, column 34]". If the specified line number is negative, this method
returns an empty string.
|
|
|