org.apache.cocoon.components.language.programming
Class CompilerError

java.lang.Object
  extended by org.apache.cocoon.components.language.programming.CompilerError

public class CompilerError
extends Object

This class encapsulates an error message produced by a programming language processor (whether interpreted or compiled)

Since:
2.0
Version:
CVS $Id: CompilerError.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Stefano Mazzocchi

Constructor Summary
CompilerError(String message)
          The error message constructor.
CompilerError(String file, boolean error, int startline, int startcolumn, int endline, int endcolumn, String message)
          The error message constructor.
 
Method Summary
 int getEndColumn()
          Return the ending column number of the program text originating this error
 int getEndLine()
          Return the ending line number of the program text originating this error
 String getFile()
          Return the filename associated with this compiler error.
 String getMessage()
          Return the message produced by the language processor
 int getStartColumn()
          Return the starting column number of the program text originating this error
 int getStartLine()
          Return the starting line number of the program text originating this error
 boolean isError()
          Assert whether this is a severe error or a warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompilerError

public CompilerError(String file,
                     boolean error,
                     int startline,
                     int startcolumn,
                     int endline,
                     int endcolumn,
                     String message)
The error message constructor.

Parameters:
file - The name of the file containing the offending program text
error - The actual error text produced by the language processor
startline - The start line number of the offending program text
startcolumn - The start column number of the offending program text
endline - The end line number of the offending program text
endcolumn - The end column number of the offending program text
message - The actual error text produced by the language processor

CompilerError

public CompilerError(String message)
The error message constructor.

Parameters:
message - The actual error text produced by the language processor
Method Detail

getFile

public String getFile()
Return the filename associated with this compiler error.

Returns:
The filename associated with this compiler error

isError

public boolean isError()
Assert whether this is a severe error or a warning

Returns:
Whether the error is severe

getStartLine

public int getStartLine()
Return the starting line number of the program text originating this error

Returns:
The starting line number of the program text originating this error

getStartColumn

public int getStartColumn()
Return the starting column number of the program text originating this error

Returns:
The starting column number of the program text originating this error

getEndLine

public int getEndLine()
Return the ending line number of the program text originating this error

Returns:
The ending line number of the program text originating this error

getEndColumn

public int getEndColumn()
Return the ending column number of the program text originating this error

Returns:
The ending column number of the program text originating this error

getMessage

public String getMessage()
Return the message produced by the language processor

Returns:
The message produced by the language processor


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.