Package org.eclipse.rdf4j.query.resultio
Class QueryResultParseException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.eclipse.rdf4j.common.exception.RDF4JException
-
- org.eclipse.rdf4j.query.resultio.QueryResultParseException
-
- All Implemented Interfaces:
java.io.Serializable
public class QueryResultParseException extends RDF4JException
A parse exception that can be thrown by a query result parser when it encounters an error from which it cannot or doesn't want to recover.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private long
columnNo
private long
lineNo
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description QueryResultParseException(java.lang.String msg)
Creates a new QueryResultParseException.QueryResultParseException(java.lang.String msg, long lineNo, long columnNo)
Creates a new QueryResultParseException.QueryResultParseException(java.lang.String msg, java.lang.Throwable t)
Creates a new QueryResultParseException wrapping another exception.QueryResultParseException(java.lang.String msg, java.lang.Throwable t, long lineNo, long columnNo)
Creates a new QueryResultParseException wrapping another exception.QueryResultParseException(java.lang.Throwable t)
Creates a new QueryResultParseException wrapping another exception.QueryResultParseException(java.lang.Throwable t, long lineNo, long columnNo)
Creates a new QueryResultParseException wrapping another exception.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getColumnNumber()
Gets the column number associated with this parse exception.long
getLineNumber()
Gets the line number associated with this parse exception.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
lineNo
private long lineNo
-
columnNo
private long columnNo
-
-
Constructor Detail
-
QueryResultParseException
public QueryResultParseException(java.lang.String msg)
Creates a new QueryResultParseException.- Parameters:
msg
- An error message.
-
QueryResultParseException
public QueryResultParseException(java.lang.String msg, java.lang.Throwable t)
Creates a new QueryResultParseException wrapping another exception.- Parameters:
msg
- An error message.t
- The source exception.
-
QueryResultParseException
public QueryResultParseException(java.lang.String msg, long lineNo, long columnNo)
Creates a new QueryResultParseException.- Parameters:
msg
- An error message.lineNo
- A line number associated with the message.columnNo
- A column number associated with the message.
-
QueryResultParseException
public QueryResultParseException(java.lang.Throwable t)
Creates a new QueryResultParseException wrapping another exception. The QueryResultParseException will inherit its message from the supplied source exception.- Parameters:
t
- The source exception.
-
QueryResultParseException
public QueryResultParseException(java.lang.Throwable t, long lineNo, long columnNo)
Creates a new QueryResultParseException wrapping another exception. The QueryResultParseException will inherit its message from the supplied source exception.- Parameters:
t
- The source exception.lineNo
- A line number associated with the message.columnNo
- A column number associated with the message.
-
QueryResultParseException
public QueryResultParseException(java.lang.String msg, java.lang.Throwable t, long lineNo, long columnNo)
Creates a new QueryResultParseException wrapping another exception.- Parameters:
msg
- An error message.t
- The source exception.lineNo
- A line number associated with the message.columnNo
- A column number associated with the message.
-
-
Method Detail
-
getLineNumber
public long getLineNumber()
Gets the line number associated with this parse exception.- Returns:
- A line number, or -1 if no line number is available or applicable.
-
getColumnNumber
public long getColumnNumber()
Gets the column number associated with this parse exception.- Returns:
- A column number, or -1 if no column number is available or applicable.
-
-