public class ErrorDispatcher extends Object
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.
Constructor and Description |
---|
ErrorDispatcher(boolean jspcMode) |
Modifier and Type | Method and Description |
---|---|
static JavacErrorDetail |
createJavacError(String fname,
Node.Nodes page,
StringBuffer errMsgBuf,
int lineNum) |
void |
javacError(JavacErrorDetail[] javacErrors) |
void |
javacError(String errorReport,
Exception e) |
void |
jspError(Exception e) |
void |
jspError(org.tinygroup.jspengine.compiler.Mark where,
Exception e) |
void |
jspError(org.tinygroup.jspengine.compiler.Mark where,
String errCode) |
void |
jspError(org.tinygroup.jspengine.compiler.Mark where,
String errCode,
String... args) |
void |
jspError(org.tinygroup.jspengine.compiler.Node n,
String errCode) |
void |
jspError(org.tinygroup.jspengine.compiler.Node n,
String errCode,
String... args) |
void |
jspError(org.tinygroup.jspengine.compiler.Node n,
String errCode,
String arg,
Exception e) |
void |
jspError(String errCode) |
void |
jspError(String errCode,
String... args) |
void |
jspError(String errCode,
String arg,
Exception e) |
static JavacErrorDetail[] |
parseJavacMessage(Node.Nodes pageNodes,
String errMsg,
String fname) |
void |
throwException(org.tinygroup.jspengine.compiler.Mark where,
JasperException je)
Creates and throws a new exception from the given JasperException,
by prepending the given location information (containing file name,
line number, and column number) to the message of the given exception,
and copying the stacktrace of the given exception to the new exception.
|
public static JavacErrorDetail[] parseJavacMessage(Node.Nodes pageNodes, String errMsg, String fname) throws IOException, JasperException
IOException
JasperException
public static JavacErrorDetail createJavacError(String fname, Node.Nodes page, StringBuffer errMsgBuf, int lineNum) throws JasperException
fname
- page
- errMsgBuf
- lineNum
- JasperException
public void jspError(String errCode) throws JasperException
JasperException
public void jspError(org.tinygroup.jspengine.compiler.Mark where, String errCode) throws JasperException
JasperException
public void jspError(org.tinygroup.jspengine.compiler.Mark where, Exception e) throws JasperException
JasperException
public void jspError(org.tinygroup.jspengine.compiler.Node n, String errCode) throws JasperException
JasperException
public void jspError(String errCode, String... args) throws JasperException
JasperException
public void jspError(org.tinygroup.jspengine.compiler.Mark where, String errCode, String... args) throws JasperException
JasperException
public void jspError(org.tinygroup.jspengine.compiler.Node n, String errCode, String... args) throws JasperException
JasperException
public void jspError(Exception e) throws JasperException
JasperException
public void jspError(String errCode, String arg, Exception e) throws JasperException
JasperException
public void jspError(org.tinygroup.jspengine.compiler.Node n, String errCode, String arg, Exception e) throws JasperException
JasperException
public void throwException(org.tinygroup.jspengine.compiler.Mark where, JasperException je) throws JasperException
where
- The location information (containing file name,
line number, and column number) to prependje
- The JasperException to amendJasperException
public void javacError(JavacErrorDetail[] javacErrors) throws JasperException
JasperException
public void javacError(String errorReport, Exception e) throws JasperException
JasperException
Copyright © 2006–2018 TinyGroup. All rights reserved.