edu.rice.cs.drjava.model.compiler
Class CompilerError

java.lang.Object
  extended by edu.rice.cs.drjava.model.DJError
      extended by edu.rice.cs.drjava.model.compiler.CompilerError
All Implemented Interfaces:
Serializable, Comparable<DJError>

public class CompilerError
extends DJError

A class to represent source errors and warnings generated by the compiler. This class enables DrJava to highlight compiler error text.

Version:
$Id: CompilerError.java 4691 2008-12-02 23:33:27Z dlsmith $
See Also:
Serialized Form

Constructor Summary
CompilerError(File file, int lineNumber, int startColumn, String message, boolean isWarning)
          Constructor.
CompilerError(File file, String message, boolean isWarning)
          Constructor for an DJError with an associated file but no location in the source
CompilerError(String message, boolean isWarning)
          Constructor for CompilerErrors without files.
 
Method Summary
 
Methods inherited from class edu.rice.cs.drjava.model.DJError
compareTo, file, fileName, getFileMessage, getLineMessage, hasNoLocation, isWarning, lineNumber, message, startColumn, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CompilerError

public CompilerError(File file,
                     int lineNumber,
                     int startColumn,
                     String message,
                     boolean isWarning)
Constructor.

Parameters:
file - the file where the error occurred
lineNumber - the line number of the error
startColumn - the starting column of the error
message - the error message

CompilerError

public CompilerError(File file,
                     String message,
                     boolean isWarning)
Constructor for an DJError with an associated file but no location in the source


CompilerError

public CompilerError(String message,
                     boolean isWarning)
Constructor for CompilerErrors without files.

Parameters:
message - the error message