Package com.scriptbasic.exceptions
Class LexicalException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.scriptbasic.interfaces.AnalysisException
com.scriptbasic.exceptions.GeneralAnalysisException
com.scriptbasic.exceptions.LexicalException
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
BasicLexicalException
public abstract class LexicalException extends GeneralAnalysisException
Exception to throw when there is some error during the lexical analysis
related to the analysis itself and not the reading of the source.
- Author:
- Peter Verhas
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description LexicalException()LexicalException(java.lang.String arg0)LexicalException(java.lang.String arg0, java.lang.Throwable arg1)LexicalException(java.lang.Throwable arg0) -
Method Summary
Modifier and Type Method Description abstract java.lang.StringgetFileName()abstract intgetLineNumber()abstract intgetPosition()Methods inherited from class com.scriptbasic.exceptions.GeneralAnalysisException
setFileName, setLineNumber, setLocation, setPosition
-
Constructor Details
-
LexicalException
public LexicalException() -
LexicalException
public LexicalException(java.lang.String arg0, java.lang.Throwable arg1) -
LexicalException
public LexicalException(java.lang.String arg0) -
LexicalException
public LexicalException(java.lang.Throwable arg0)
-
-
Method Details
-
getFileName
public abstract java.lang.String getFileName()- Overrides:
getFileNamein classGeneralAnalysisException
-
getLineNumber
public abstract int getLineNumber()- Overrides:
getLineNumberin classGeneralAnalysisException
-
getPosition
public abstract int getPosition()- Overrides:
getPositionin classGeneralAnalysisException
-