pl.edu.pjwstk.yaod.yaql.parser
Class ParserException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--pl.edu.pjwstk.yaod.yaql.SBQLException
                    |
                    +--pl.edu.pjwstk.yaod.yaql.parser.ParserException
All Implemented Interfaces:
java.io.Serializable

public class ParserException
extends SBQLException

The ParserException class represents an exception which is thrown if an error occurs during parsing process. It possess the reason of the error in message value.

Author:
Jakub Trzetrzelewski, jakub_trzetrzelewski@yahoo.com
See Also:
SBQLException, Serialized Form

Fields inherited from class pl.edu.pjwstk.yaod.yaql.SBQLException
message
 
Constructor Summary
ParserException(java.lang.String message, int line, int column)
          Creates a new exception with specified message, additionally with line and column of an error.
 
Method Summary
 int getErrorColumn()
          Returns the column of an error in the source code.
 int getErrorLine()
          Returns the line of an error in the source code.
 java.lang.String getErrorText()
          Returns the error message.
 java.lang.String getExceptionName()
          Returns the exception name.
 java.lang.String getMessage()
          Returns the exception message.
 
Methods inherited from class pl.edu.pjwstk.yaod.yaql.SBQLException
setMessage
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ParserException

public ParserException(java.lang.String message,
                       int line,
                       int column)
Creates a new exception with specified message, additionally with line and column of an error.
Parameters:
message - the message representing the error.
line - the line of the source code in which an error occured.
column - the column of the source code in which an error occured.
Method Detail

getErrorText

public java.lang.String getErrorText()
Returns the error message.
Returns:
the message representing the reason of the error.

getErrorLine

public int getErrorLine()
Returns the line of an error in the source code.
Returns:
the line of an error in the source code.

getErrorColumn

public int getErrorColumn()
Returns the column of an error in the source code.
Returns:
the column of an error in the source code.

getMessage

public java.lang.String getMessage()
Returns the exception message.
Overrides:
getMessage in class SBQLException
Returns:
the message representing the reason of the exception.

getExceptionName

public java.lang.String getExceptionName()
Returns the exception name.
Overrides:
getExceptionName in class SBQLException
Returns:
the message representing the exception name.