jrunx.compiler
Class CompilerError
java.lang.Object
|
+--jrunx.compiler.CompilerError
- public class CompilerError
- extends java.lang.Object
This exception represents an individual compilation error.
CompilationFailedException has accessor methods for an enumeration
of these.
|
Field Summary |
protected java.lang.String |
error
|
protected java.lang.String |
file
|
protected int |
line
|
|
Constructor Summary |
CompilerError(java.lang.String error,
int line,
java.lang.String file)
|
|
Method Summary |
java.lang.String |
getErrorMessage()
Return the error message related to this error with other
information stripped away (such as line number, file etc). |
int |
getLineNumber()
Return the line number this error occured on. |
java.lang.String |
getSourceFile()
Return the file the error occured in. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
error
protected java.lang.String error
line
protected int line
file
protected java.lang.String file
CompilerError
public CompilerError(java.lang.String error,
int line,
java.lang.String file)
getErrorMessage
public java.lang.String getErrorMessage()
- Return the error message related to this error with other
information stripped away (such as line number, file etc).
getLineNumber
public int getLineNumber()
- Return the line number this error occured on.
getSourceFile
public java.lang.String getSourceFile()
- Return the file the error occured in. Because how java
compilers work the compiler might actually be compiling a
dependency of the source file being compiled.
Copyright � 2002 Macromedia Corporation. All Rights Reserved.