|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
marf.util.MARFException
marf.nlp.NLPException
marf.nlp.Parsing.CompilerError
public class CompilerError
Generic Compiler Error. Normally subclassed to differentiate between various error types like lexical, syntax, semantic and such.
$Id: CompilerError.java,v 1.19 2008/01/03 03:21:57 mokhov Exp $
| Field Summary | |
|---|---|
protected int |
iCurrentErrorCode
Error code of the last error occurred. |
protected int |
iLineNo
Line number where the given error occurred. |
static int |
OK
Error code signifying "no error". |
| Fields inherited from class marf.util.MARFException |
|---|
strMessage |
| Constructor Summary | |
|---|---|
CompilerError()
Default Constructor. |
|
CompilerError(java.lang.Exception poException)
Wraps the parameter exception into CompilerError. |
|
CompilerError(java.lang.String pstrMessage)
Creates a CompilerError with a custom error message string. |
|
CompilerError(java.lang.String pstrMessage,
java.lang.Exception poException)
Wraps the parameter exception into CompilerError with a custom error message string. |
|
| Method Summary | |
|---|---|
int |
getCurrentErrorCode()
Access method for the current error code property. |
int |
getLineNo()
Access method for the line number property. |
static java.lang.String |
getMARFSourceCodeRevision()
Retrieves class' revision. |
| Methods inherited from class marf.util.MARFException |
|---|
create, create, create, create, getMessage, toString |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int OK
protected int iCurrentErrorCode
protected int iLineNo
| Constructor Detail |
|---|
public CompilerError()
public CompilerError(java.lang.Exception poException)
poException - the exception object to wrappublic CompilerError(java.lang.String pstrMessage)
pstrMessage - the custom error message
public CompilerError(java.lang.String pstrMessage,
java.lang.Exception poException)
pstrMessage - the custom error messagepoException - the exception object to wrap| Method Detail |
|---|
public int getCurrentErrorCode()
public int getLineNo()
public static java.lang.String getMARFSourceCodeRevision()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||