litebase
Class SQLParseException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--litebase.SQLParseException

public class SQLParseException
extends java.lang.RuntimeException

This exception may be dispatched by routines that handle the parsing of an SQL command. It is an unchecked Exception (can be thrown at any time).

See Also:
Serialized Form

Constructor Summary
SQLParseException()
          Default constructor.
SQLParseException(java.lang.String s)
          Constructor which accepts an error message.
SQLParseException(java.lang.String s, int posError)
          Constructor which accepts an error message and the error position.
 
Method Summary
 int getErrorPosition()
          Returns the position where the error was found.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SQLParseException

public SQLParseException()
Default constructor.

SQLParseException

public SQLParseException(java.lang.String s)
Constructor which accepts an error message.
Parameters:
s - the error message

SQLParseException

public SQLParseException(java.lang.String s,
                         int posError)
Constructor which accepts an error message and the error position.
Parameters:
s - the error message
posError - the position where the error was found
Method Detail

getErrorPosition

public int getErrorPosition()
Returns the position where the error was found.
Returns:
the position where the error was found.