org.apache.jasper.compiler
接口 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.

作者:
Jan Luehe, Kin-man Chung

方法摘要
 void javacError(JavacErrorDetail[] details)
          Processes the given javac compilation errors.
 void javacError(String errorReport, Exception exception)
          Processes the given javac error report and exception.
 void jspError(String msg, Exception exception)
          Processes the given JSP parse error.
 void jspError(String fname, int line, int column, String msg, Exception exception)
          Processes the given JSP parse error.
 

方法详细信息

jspError

void jspError(String fname,
              int line,
              int column,
              String msg,
              Exception exception)
              throws JasperException
Processes the given JSP parse error.

参数:
fname - Name of the JSP file in which the parse error occurred
line - Parse error line number
column - Parse error column number
msg - Parse error message
exception - Parse exception
抛出:
JasperException

jspError

void jspError(String msg,
              Exception exception)
              throws JasperException
Processes the given JSP parse error.

参数:
msg - Parse error message
exception - Parse exception
抛出:
JasperException

javacError

void javacError(JavacErrorDetail[] details)
                throws JasperException
Processes the given javac compilation errors.

参数:
details - Array of JavacErrorDetail instances corresponding to the compilation errors
抛出:
JasperException

javacError

void javacError(String errorReport,
                Exception exception)
                throws JasperException
Processes the given javac error report and exception.

参数:
errorReport - Compilation error report
exception - Compilation exception
抛出:
JasperException


Copyright © 2013. All Rights Reserved.