Interface ErrorHandler
public interface ErrorHandler
Interface for handling JSP parse and javac compilation errors. An implementation of this interface may be registered
with the ErrorDispatcher by setting the XXX initialization parameter in the JSP page compiler and execution servlet
in Catalina's web.xml file to the implementation's fully qualified class name.
-
Method Summary
Modifier and TypeMethodDescriptionvoidjavacError(String errorReport, Exception exception) Processes the given javac error report and exception.voidjavacError(JavacErrorDetail[] details) Processes the given javac compilation errors.voidProcesses the given JSP parse error.voidProcesses the given JSP parse error.
-
Method Details
-
jspError
void jspError(String fname, int line, int column, String msg, Exception exception) throws JasperException Processes the given JSP parse error.It is expected (and Jasper is coded based on this) that calls to this method will always result in a
JasperExceptionbeing thrown.- Parameters:
fname- Name of the JSP file in which the parse error occurredline- Parse error line numbercolumn- Parse error column numbermsg- Parse error messageexception- Parse exception- Throws:
JasperException- An error occurred
-
jspError
Processes the given JSP parse error.It is expected (and Jasper is coded based on this) that calls to this method will always result in a
JasperExceptionbeing thrown.- Parameters:
msg- Parse error messageexception- Parse exception- Throws:
JasperException- An error occurred
-
javacError
Processes the given javac compilation errors.It is expected (and Jasper is coded based on this) that calls to this method will always result in a
JasperExceptionbeing thrown.- Parameters:
details- Array of JavacErrorDetail instances corresponding to the compilation errors- Throws:
JasperException- An error occurred
-
javacError
Processes the given javac error report and exception.It is expected (and Jasper is coded based on this) that calls to this method will always result in a
JasperExceptionbeing thrown.- Parameters:
errorReport- Compilation error reportexception- Compilation exception- Throws:
JasperException- An error occurred
-