public class ErrorDispatcher extends Object
Constructor and Description |
---|
ErrorDispatcher(boolean jspcMode) |
Modifier and Type | Method and Description |
---|---|
static JavacErrorDetail |
createJavacError(String fname,
Node.Nodes page,
StringBuilder errMsgBuf,
int lineNum) |
static JavacErrorDetail |
createJavacError(String fname,
Node.Nodes page,
StringBuilder errMsgBuf,
int lineNum,
JspCompilationContext ctxt) |
void |
javacError(JavacErrorDetail[] javacErrors) |
void |
javacError(String errorReport,
Exception e) |
void |
jspError(Exception e) |
void |
jspError(Exception e,
String errCode,
String... args) |
void |
jspError(org.apache.jasper.compiler.Mark where,
Exception e,
String errCode,
String... args) |
void |
jspError(org.apache.jasper.compiler.Mark where,
String errCode,
String... args) |
void |
jspError(org.apache.jasper.compiler.Node n,
Exception e,
String errCode,
String... args) |
void |
jspError(org.apache.jasper.compiler.Node n,
String errCode,
String... args) |
void |
jspError(String errCode,
String... args) |
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).
|
public void jspError(String errCode, String... args) throws JasperException
JasperException
public void jspError(org.apache.jasper.compiler.Mark where, String errCode, String... args) throws JasperException
JasperException
public void jspError(org.apache.jasper.compiler.Node n, String errCode, String... args) throws JasperException
JasperException
public void jspError(Exception e) throws JasperException
JasperException
public void jspError(Exception e, String errCode, String... args) throws JasperException
JasperException
public void jspError(org.apache.jasper.compiler.Mark where, Exception e, String errCode, String... args) throws JasperException
JasperException
public void jspError(org.apache.jasper.compiler.Node n, Exception e, String errCode, String... args) throws JasperException
JasperException
public static JavacErrorDetail[] parseJavacErrors(String errMsg, String fname, Node.Nodes page) throws JasperException, IOException
errMsg
- Error messagefname
- Name of Java source file whose compilation failedpage
- Node representation of JSP page from which the Java source
file was generatedJasperException
IOException
public void javacError(JavacErrorDetail[] javacErrors) throws JasperException
JasperException
public void javacError(String errorReport, Exception e) throws JasperException
JasperException
public static JavacErrorDetail createJavacError(String fname, Node.Nodes page, StringBuilder errMsgBuf, int lineNum) throws JasperException
fname
- page
- errMsgBuf
- lineNum
- JasperException
public static JavacErrorDetail createJavacError(String fname, Node.Nodes page, StringBuilder errMsgBuf, int lineNum, JspCompilationContext ctxt) throws JasperException
fname
- page
- errMsgBuf
- lineNum
- ctxt
- JasperException
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.