marf.nlp.Parsing
Class CompilerError

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by marf.util.MARFException
              extended by marf.nlp.Parsing.CompilerError
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
LexicalError, SemanticError, SyntaxError

public class CompilerError
extends MARFException
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.9 2005/06/16 19:58:57 mokhov Exp $

Since:
0.3.0
Version:
$Revision: 1.9 $
Author:
Serguei Mokhov
See Also:
Serialized Form

Field Summary
protected  int CurrentErrorCode
          Error code of the last error occured.
protected  java.lang.String CurrentErrorString
          A descriptive message correspoding to a given error code.
protected  int LineNo
          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)
           
CompilerError(java.lang.String pstrMessage)
           
CompilerError(java.lang.String pstrMessage, java.lang.Exception poException)
           
 
Method Summary
 int getCurrentErrorCode()
          Access method for the CurrentErrorCode property.
 java.lang.String getCurrentErrorString()
          Access method for the CurrentErrorString property.
 int getLineNo()
          Access method for the LineNo property.
static java.lang.String getMARFSourceCodeRevision()
          Retrieves class' revision.
 
Methods inherited from class marf.util.MARFException
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

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
Constructor Detail

CompilerError

public CompilerError()
Default Constructor.

Since:
October 2, 2001

CompilerError

public CompilerError(java.lang.Exception poException)
Parameters:
poException -

CompilerError

public CompilerError(java.lang.String pstrMessage)
Parameters:
pstrMessage -

CompilerError

public CompilerError(java.lang.String pstrMessage,
                     java.lang.Exception poException)
Parameters:
pstrMessage -
poException -
Method Detail

getCurrentErrorCode

public int getCurrentErrorCode()
Access method for the CurrentErrorCode property.

Returns:
the current value of the CurrentErrorCode property

getCurrentErrorString

public java.lang.String getCurrentErrorString()
Access method for the CurrentErrorString property.

Returns:
the current value of the CurrentErrorString property

getLineNo

public int getLineNo()
Access method for the LineNo property.

Returns:
the current value of the LineNo property

getMARFSourceCodeRevision

public static java.lang.String getMARFSourceCodeRevision()
Retrieves class' revision.

Returns:
revision string