| java.lang.Object org.apache.jasper.compiler.ErrorDispatcher
ErrorDispatcher | public class ErrorDispatcher (Code) | | Class responsible for dispatching JSP parse and javac compilation errors
to the configured error handler.
This class is also responsible for localizing any error codes before they
are passed on to the configured error handler.
In the case of a Java compilation error, the compiler error message is
parsed into an array of JavacErrorDetail instances, which is passed on to
the configured error handler.
author: Jan Luehe author: Kin-man Chung |
Method Summary | |
public void | javacError(JavacErrorDetail[] javacErrors) | public void | javacError(String errorReport, Exception e) | public void | jspError(String errCode) | public void | jspError(Mark where, String errCode) | public void | jspError(Node n, String errCode) | public void | jspError(String errCode, String arg) | public void | jspError(Mark where, String errCode, String arg) | public void | jspError(Node n, String errCode, String arg) | public void | jspError(String errCode, String arg1, String arg2) | public void | jspError(String errCode, String arg1, String arg2, String arg3) | public void | jspError(Mark where, String errCode, String arg1, String arg2) | public void | jspError(Mark where, String errCode, String arg1, String arg2, String arg3) | public void | jspError(Node n, String errCode, String arg1, String arg2) | public void | jspError(Node n, String errCode, String arg1, String arg2, String arg3) | public void | jspError(Exception e) | public void | jspError(String errCode, String arg, Exception e) | public void | jspError(Node n, String errCode, String arg, Exception e) | public static JavacErrorDetail[] | parseJavacErrors(String errMsg, String fname, Node.Nodes page) Parses the given error message into an array of javac compilation error
messages (one per javac compilation error line number). |
ErrorDispatcher | public ErrorDispatcher(boolean jspcMode)(Code) | | |
parseJavacErrors | public static JavacErrorDetail[] parseJavacErrors(String errMsg, String fname, Node.Nodes page) throws JasperException, IOException(Code) | | Parses the given error message into an array of javac compilation error
messages (one per javac compilation error line number).
Parameters: errMsg - Error message Parameters: fname - Name of Java source file whose compilation failed Parameters: page - Node representation of JSP page from which the Java sourcefile was generated Array of javac compilation errors, or null if the given errormessage does not contain any compilation error line numbers |
|
|