java.lang.Object
java.lang.Throwable
java.lang.Exception
marf.util.MARFException
marf.nlp.NLPException
marf.nlp.Parsing.CompilerError
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- LexicalError, SemanticError, SyntaxError
- public class CompilerError
- extends marf.nlp.NLPException
- implements java.io.Serializable
Generic Compiler Error.
Normally subclassed to differentiate
between various error types like
lexical, syntactical, semantic and such.
$Id: CompilerError.java,v 1.12 2005/08/13 23:09:39 susan_fan Exp $
- Since:
- 0.3.0.2
- Version:
- $Revision: 1.12 $
| Nested classes inherited from class java.lang.Throwable |
|
| Fields inherited from class java.lang.Throwable |
|
serialVersionUID
private static final long serialVersionUID
- For serialization versioning.
When adding new members or make other structural
changes regenerate this number with the
serialver tool that comes with JDK.
- Since:
- 0.3.0.4
- See Also:
- Constant Field Values
OK
public static final int OK
- Error code signifying "no error".
- Since:
- October 2, 2001
- See Also:
- Constant Field Values
CurrentErrorCode
protected int CurrentErrorCode
- Error code of the last error occured.
- Since:
- October 2, 2001
CurrentErrorString
protected java.lang.String CurrentErrorString
- A descriptive message correspoding to a given error code.
- Since:
- October 2, 2001
LineNo
protected int LineNo
- Line number where the given error occurred.
- Since:
- October 2, 2001
CompilerError
public CompilerError()
- Default Constructor.
- Since:
- October 2, 2001
CompilerError
public CompilerError(java.lang.Exception poException)
CompilerError
public CompilerError(java.lang.String pstrMessage)
CompilerError
public CompilerError(java.lang.String pstrMessage,
java.lang.Exception poException)
getCurrentErrorCode
public int getCurrentErrorCode()
- Access method for the CurrentErrorCode property.
getCurrentErrorString
public java.lang.String getCurrentErrorString()
- Access method for the CurrentErrorString property.
getLineNo
public int getLineNo()
- Access method for the LineNo property.
getMARFSourceCodeRevision
public static java.lang.String getMARFSourceCodeRevision()
- Retrieves class' revision.