pl.edu.pjwstk.yaod.yaql.parser
Class LexerException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--pl.edu.pjwstk.yaod.yaql.SBQLException
|
+--pl.edu.pjwstk.yaod.yaql.parser.LexerException
- All Implemented Interfaces:
- java.io.Serializable
- public class LexerException
- extends SBQLException
The LexerException
class represents an exception which is
thrown if an error occurs during lexing process. It possess
the reason of the error in message
value.
- Author:
- Jakub Trzetrzelewski, jakub_trzetrzelewski@yahoo.com
- See Also:
SBQLException
, Serialized Form
Constructor Summary |
LexerException(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 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 |
LexerException
public LexerException(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.
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.