public class ErrorDispatcher extends Object
Constructor and Description |
---|
ErrorDispatcher(boolean jspcMode) |
Modifier and Type | Method and Description |
---|---|
static JavacErrorDetail |
createJavacError(String fname,
org.apache.jasper.compiler.Node.Nodes page,
StringBuilder errMsgBuf,
int lineNum)
Create a compilation error.
|
static JavacErrorDetail |
createJavacError(String fname,
org.apache.jasper.compiler.Node.Nodes page,
StringBuilder errMsgBuf,
int lineNum,
JspCompilationContext ctxt)
Create a compilation error.
|
void |
javacError(JavacErrorDetail[] javacErrors)
Dispatches the given javac compilation errors to the configured error
handler.
|
void |
javacError(String errorReport,
Exception e)
Dispatches the given compilation error report and exception to the
configured error handler.
|
void |
jspError(Exception e)
Dispatches the given parsing exception to the configured error handler.
|
void |
jspError(Exception e,
String errCode,
String arg) |
void |
jspError(org.apache.jasper.compiler.Mark where,
Exception e,
String errCode,
String... args) |
void |
jspError(org.apache.jasper.compiler.Mark where,
String errCode)
Dispatches the given JSP parse error to the configured error handler.
|
void |
jspError(org.apache.jasper.compiler.Mark where,
String errCode,
String arg)
Dispatches the given JSP parse error to the configured error handler.
|
void |
jspError(org.apache.jasper.compiler.Mark where,
String errCode,
String arg1,
String arg2)
Dispatches the given JSP parse error to the configured error handler.
|
void |
jspError(org.apache.jasper.compiler.Mark where,
String errCode,
String arg1,
String arg2,
String arg3)
Dispatches the given JSP parse error to the configured error handler.
|
void |
jspError(org.apache.jasper.compiler.Node n,
Exception e,
String errCode,
String arg)
Dispatches the given JSP parse error to the configured error handler.
|
void |
jspError(org.apache.jasper.compiler.Node n,
String errCode)
Dispatches the given JSP parse error to the configured error handler.
|
void |
jspError(org.apache.jasper.compiler.Node n,
String errCode,
String arg)
Dispatches the given JSP parse error to the configured error handler.
|
void |
jspError(org.apache.jasper.compiler.Node n,
String errCode,
String arg,
Exception e)
Deprecated.
Replaced by jspError(Node, Exception, String, String)
|
void |
jspError(org.apache.jasper.compiler.Node n,
String errCode,
String arg1,
String arg2)
Dispatches the given JSP parse error to the configured error handler.
|
void |
jspError(org.apache.jasper.compiler.Node n,
String errCode,
String arg1,
String arg2,
String arg3)
Dispatches the given JSP parse error to the configured error handler.
|
void |
jspError(String errCode)
Dispatches the given JSP parse error to the configured error handler.
|
void |
jspError(String errCode,
String arg)
Dispatches the given JSP parse error to the configured error handler.
|
void |
jspError(String errCode,
String arg,
Exception e)
Deprecated.
Replaced by jspError(Exception, String, String)
|
void |
jspError(String errCode,
String arg1,
String arg2)
Dispatches the given JSP parse error to the configured error handler.
|
void |
jspError(String errCode,
String arg1,
String arg2,
String arg3)
Dispatches the given JSP parse error to the configured error handler.
|
static JavacErrorDetail[] |
parseJavacErrors(String errMsg,
String fname,
org.apache.jasper.compiler.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) throws JasperException
errCode
- Error codeJasperException
- An error occurredpublic void jspError(org.apache.jasper.compiler.Mark where, String errCode) throws JasperException
where
- Error locationerrCode
- Error codeJasperException
- An error occurredpublic void jspError(org.apache.jasper.compiler.Node n, String errCode) throws JasperException
n
- Node that caused the errorerrCode
- Error codeJasperException
- An error occurredpublic void jspError(String errCode, String arg) throws JasperException
errCode
- Error codearg
- Argument for parametric replacementJasperException
- An error occurredpublic void jspError(org.apache.jasper.compiler.Mark where, String errCode, String arg) throws JasperException
where
- Error locationerrCode
- Error codearg
- Argument for parametric replacementJasperException
- An error occurredpublic void jspError(org.apache.jasper.compiler.Node n, String errCode, String arg) throws JasperException
n
- Node that caused the errorerrCode
- Error codearg
- Argument for parametric replacementJasperException
- An error occurredpublic void jspError(String errCode, String arg1, String arg2) throws JasperException
errCode
- Error codearg1
- First argument for parametric replacementarg2
- Second argument for parametric replacementJasperException
- An error occurredpublic void jspError(String errCode, String arg1, String arg2, String arg3) throws JasperException
errCode
- Error codearg1
- First argument for parametric replacementarg2
- Second argument for parametric replacementarg3
- Third argument for parametric replacementJasperException
- An error occurredpublic void jspError(org.apache.jasper.compiler.Mark where, String errCode, String arg1, String arg2) throws JasperException
where
- Error locationerrCode
- Error codearg1
- First argument for parametric replacementarg2
- Second argument for parametric replacementJasperException
- An error occurredpublic void jspError(org.apache.jasper.compiler.Mark where, String errCode, String arg1, String arg2, String arg3) throws JasperException
where
- Error locationerrCode
- Error codearg1
- First argument for parametric replacementarg2
- Second argument for parametric replacementarg3
- Third argument for parametric replacementJasperException
- An error occurredpublic void jspError(org.apache.jasper.compiler.Node n, String errCode, String arg1, String arg2) throws JasperException
n
- Node that caused the errorerrCode
- Error codearg1
- First argument for parametric replacementarg2
- Second argument for parametric replacementJasperException
- An error occurredpublic void jspError(org.apache.jasper.compiler.Node n, String errCode, String arg1, String arg2, String arg3) throws JasperException
n
- Node that caused the errorerrCode
- Error codearg1
- First argument for parametric replacementarg2
- Second argument for parametric replacementarg3
- Third argument for parametric replacementJasperException
- An error occurredpublic void jspError(Exception e) throws JasperException
e
- Parsing exceptionJasperException
- An error occurredpublic void jspError(Exception e, String errCode, String arg) throws JasperException
JasperException
@Deprecated public void jspError(String errCode, String arg, Exception e) throws JasperException
errCode
- Error codearg
- Argument for parametric replacemente
- Parsing exceptionJasperException
- An error occurredpublic 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 arg) throws JasperException
n
- Node that caused the errore
- Parsing exceptionerrCode
- Error codearg
- Argument for parametric replacementJasperException
- An error occurred@Deprecated public void jspError(org.apache.jasper.compiler.Node n, String errCode, String arg, Exception e) throws JasperException
n
- Node that caused the errorerrCode
- Error codearg
- Argument for parametric replacemente
- Parsing exceptionJasperException
- An error occurredpublic static JavacErrorDetail[] parseJavacErrors(String errMsg, String fname, org.apache.jasper.compiler.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
- An error occurredIOException
- IO error which usually should not occurpublic void javacError(JavacErrorDetail[] javacErrors) throws JasperException
javacErrors
- Array of javac compilation errorsJasperException
- An error occurredpublic void javacError(String errorReport, Exception e) throws JasperException
errorReport
- Compilation error reporte
- Compilation exceptionJasperException
- An error occurredpublic static JavacErrorDetail createJavacError(String fname, org.apache.jasper.compiler.Node.Nodes page, StringBuilder errMsgBuf, int lineNum) throws JasperException
fname
- The file namepage
- The page nodeserrMsgBuf
- The error messagelineNum
- The source line number of the errorJasperException
- An error occurredpublic static JavacErrorDetail createJavacError(String fname, org.apache.jasper.compiler.Node.Nodes page, StringBuilder errMsgBuf, int lineNum, JspCompilationContext ctxt) throws JasperException
fname
- The file namepage
- The page nodeserrMsgBuf
- The error messagelineNum
- The source line number of the errorctxt
- The compilation contextJasperException
- An error occurredCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.