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
All Methods Instance Methods Abstract Methods 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
-
-
-
-
Method Detail
-
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
-
-