Name

ErrorData

Synopsis

The container makes an instance of ErrorData available to JSP error pages through the PageContext for the page.

Synopsis

Class name:

javax.servlet.jsp.ErrorData

Extends:

None

Implements:

None

Implemented by:

Internal container-dependent class; most containers use the reference implementation of the class (developed in the Apache Jakarta project)

Constructor

public ErrorData(Throwable throwable, int statusCode, String uri, String name)

Creates a new instance.

Methods

public String getRequestURI( )

Returns the URI for the failed request.

public String getServletName( )

Returns the name of the servlet that handled the failed request.

public int getStatusCode( )

Returns the status code that caused the error page to be invoked.

public Throwable getThrowable( )

Returns the exception that caused the error page to be invoked.

Get JavaServer Pages, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.