org.openrdf.query.resultio
Class QueryResultParseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.openrdf.OpenRDFException
              extended by org.openrdf.query.resultio.QueryResultParseException
All Implemented Interfaces:
Serializable

public class QueryResultParseException
extends OpenRDFException

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.

Author:
Arjohn Kampman
See Also:
Serialized Form

Constructor Summary
QueryResultParseException(String msg)
          Creates a new QueryResultParseException.
QueryResultParseException(String msg, int lineNo, int columnNo)
          Creates a new QueryResultParseException.
QueryResultParseException(Throwable t)
          Creates a new QueryResultParseException wrapping another exception.
QueryResultParseException(Throwable t, int lineNo, int columnNo)
          Creates a new QueryResultParseException wrapping another exception.
 
Method Summary
 int getColumnNumber()
          Gets the column number associated with this parse exception.
 int getLineNumber()
          Gets the line number associated with this parse exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QueryResultParseException

public QueryResultParseException(String msg)
Creates a new QueryResultParseException.

Parameters:
msg - An error message.

QueryResultParseException

public QueryResultParseException(String msg,
                                 int lineNo,
                                 int 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(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(Throwable t,
                                 int lineNo,
                                 int 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.
Method Detail

getLineNumber

public int 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 int getColumnNumber()
Gets the column number associated with this parse exception.

Returns:
A column number, or -1 if no column number is available or applicable.


Copyright © 2001-2008 Aduna. All Rights Reserved.