Package gnu.jel
Class CompilationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
gnu.jel.CompilationException
- All Implemented Interfaces:
- java.io.Serializable
public class CompilationException
extends java.lang.Exception
Represents an error encountered during the compilation.
 
The text of the messages can be changed/internationalized by modification of JEL.properties file
- See Also:
- Serialized Form
- 
Field SummaryFields Modifier and Type Field Description intcol
- 
Constructor SummaryConstructors Constructor Description CompilationException(int code, java.lang.Object param)Constructs new CompilationException with a single formatting parameter.
- 
Method SummaryModifier and Type Method Description intgetColumn()Used to obtain the column, where error have occurred.java.lang.StringgetMessage()Used to obtain the formatted error message.java.lang.Object[]getParameters()Used to obtain the parameters for this error.intgetType()Used to obtain the error code.
- 
Field Details- 
colpublic int col
 
- 
- 
Constructor Details- 
CompilationExceptionpublic CompilationException(int code, java.lang.Object param)Constructs new CompilationException with a single formatting parameter.- Parameters:
- code- is the error code (must correspond to a message in JEL.properties file).
- param- is the single Object parameter or an array of Objects to be used in message formatting.
 
 
- 
- 
Method Details- 
getColumnpublic int getColumn()Used to obtain the column, where error have occurred.- Returns:
- column, where error have occurred.
 
- 
getTypepublic int getType()Used to obtain the error code.- Returns:
- the error code, corresponding to one of the messages in JEL.properties file.
 
- 
getParameterspublic java.lang.Object[] getParameters()Used to obtain the parameters for this error.- Returns:
- the parameters to be used in message formatting, they provide further information about the error.
 
- 
getMessagepublic java.lang.String getMessage()Used to obtain the formatted error message.- Overrides:
- getMessagein class- java.lang.Throwable
- Returns:
- the formatted error message.
 
 
-