|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjavax.servlet.jsp.ErrorData
public final class ErrorData
Contains information about an error, for error pages. The information contained in this instance is meaningless if not used in the context of an error page. To indicate a JSP is an error page, the page author must set the isErrorPage attribute of the page directive to "true".
PageContext.getErrorData()| 构造方法摘要 | |
|---|---|
ErrorData(Throwable throwable,
int statusCode,
String uri,
String servletName)
Creates a new ErrorData object. |
|
| 方法摘要 | |
|---|---|
String |
getRequestURI()
Returns the request URI. |
String |
getServletName()
Returns the name of the servlet invoked. |
int |
getStatusCode()
Returns the status code of the error. |
Throwable |
getThrowable()
Returns the Throwable that caused the error. |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public ErrorData(Throwable throwable,
int statusCode,
String uri,
String servletName)
throwable - The Throwable that is the cause of the errorstatusCode - The status code of the erroruri - The request URIservletName - The name of the servlet invoked| 方法详细信息 |
|---|
public Throwable getThrowable()
public int getStatusCode()
public String getRequestURI()
public String getServletName()
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||