public class ErrorDispatcher
extends java.lang.Object
Constructor and Description |
---|
ErrorDispatcher(boolean jspcMode) |
Modifier and Type | Method and Description |
---|---|
static JavacErrorDetail |
createJavacError(java.lang.String fname,
Node.Nodes page,
java.lang.StringBuilder errMsgBuf,
int lineNum) |
static JavacErrorDetail |
createJavacError(java.lang.String fname,
Node.Nodes page,
java.lang.StringBuilder errMsgBuf,
int lineNum,
JspCompilationContext ctxt) |
void |
javacError(JavacErrorDetail[] javacErrors) |
void |
javacError(java.lang.String errorReport,
java.lang.Exception e) |
void |
jspError(java.lang.Exception e) |
void |
jspError(java.lang.Exception e,
java.lang.String errCode,
java.lang.String... args) |
void |
jspError(org.apache.jasper.compiler.Mark where,
java.lang.Exception e,
java.lang.String errCode,
java.lang.String... args) |
void |
jspError(org.apache.jasper.compiler.Mark where,
java.lang.String errCode,
java.lang.String... args) |
void |
jspError(org.apache.jasper.compiler.Node n,
java.lang.Exception e,
java.lang.String errCode,
java.lang.String... args) |
void |
jspError(org.apache.jasper.compiler.Node n,
java.lang.String errCode,
java.lang.String... args) |
void |
jspError(java.lang.String errCode,
java.lang.String... args) |
static JavacErrorDetail[] |
parseJavacErrors(java.lang.String errMsg,
java.lang.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(java.lang.String errCode, java.lang.String... args) throws JasperException
JasperException
public void jspError(org.apache.jasper.compiler.Mark where, java.lang.String errCode, java.lang.String... args) throws JasperException
JasperException
public void jspError(org.apache.jasper.compiler.Node n, java.lang.String errCode, java.lang.String... args) throws JasperException
JasperException
public void jspError(java.lang.Exception e) throws JasperException
JasperException
public void jspError(java.lang.Exception e, java.lang.String errCode, java.lang.String... args) throws JasperException
JasperException
public void jspError(org.apache.jasper.compiler.Mark where, java.lang.Exception e, java.lang.String errCode, java.lang.String... args) throws JasperException
JasperException
public void jspError(org.apache.jasper.compiler.Node n, java.lang.Exception e, java.lang.String errCode, java.lang.String... args) throws JasperException
JasperException
public static JavacErrorDetail[] parseJavacErrors(java.lang.String errMsg, java.lang.String fname, Node.Nodes page) throws JasperException, java.io.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
java.io.IOException
public void javacError(JavacErrorDetail[] javacErrors) throws JasperException
JasperException
public void javacError(java.lang.String errorReport, java.lang.Exception e) throws JasperException
JasperException
public static JavacErrorDetail createJavacError(java.lang.String fname, Node.Nodes page, java.lang.StringBuilder errMsgBuf, int lineNum) throws JasperException
fname
- page
- errMsgBuf
- lineNum
- JasperException
public static JavacErrorDetail createJavacError(java.lang.String fname, Node.Nodes page, java.lang.StringBuilder errMsgBuf, int lineNum, JspCompilationContext ctxt) throws JasperException
fname
- page
- errMsgBuf
- lineNum
- ctxt
- JasperException
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.