Name

exception

Synopsis

The exception variable is assigned a reference to the subclass of Throwable that caused an error page to be invoked. The Throwable class is the superclass of all error and exception classes in the Java language. Only instances of this class (or of one of its subclasses) are thrown by the Java Virtual Machine (JVM) or can be thrown by an application using the Java throw statement.

Synopsis

Variable name:

exception

EL expression

${pageContext.exception}

Class name:

java.lang.Throwable

Extends:

None

Implements:

java.io.Serializable

Implemented by:

Part of the standard Java library

JSP page type:

Available only in a page marked as an error page using the page directive isErrorPage attribute

Methods

See the Java documentation at http://java.sun.com/docs/index.html for a description of the Throwable class.

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.