javax.servlet.jsp

Class ErrorData


public class ErrorData
extends Object

Information about an error for error pages.

Constructor Summary

ErrorData(Throwable throwable, int statusCode, String uri, String servletName)
Create a new errorData object.

Method Summary

String
getRequestURI()
Returns the error's request URI.
String
getServletName()
Returns the error's servlet-name.
int
getStatusCode()
Returns the error's status code
Throwable
getThrowable()
Returns the Throwable which caused the error

Methods inherited from class java.lang.Object

clone, equals, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Details

ErrorData

public ErrorData(Throwable throwable,
                 int statusCode,
                 String uri,
                 String servletName)
Create a new errorData object.

Method Details

getRequestURI

public String getRequestURI()
Returns the error's request URI.

getServletName

public String getServletName()
Returns the error's servlet-name.

getStatusCode

public int getStatusCode()
Returns the error's status code

getThrowable

public Throwable getThrowable()
Returns the Throwable which caused the error