# com.bea.wlw.netui.tags.html
Exceptions Class

public class Exceptions
extends `TagSupport`

Renders formatted exception data, as found in the Request with the key: `org.apache.struts.action.Action.EXCEPTION_KEY`. Exceptions ignores its body content.

Attribute Descriptions
Attribute | Required | Runtime Expression Evaluation | Data Bindable
--- | --- | --- | ---
showMessage | No | No | No
Determines whether or not the message of the exception should be shown
showStackTrace | No | No | No
Returns whether or not the stack trace is being shown

Related Topics

<netui:exceptions> Tag Sample

Hierarchy
  `Object`
  `TagSupport`
  `Exceptions`

All Implemented Interfaces
  `IterationTag`, `Serializable`, `Tag`

## Field Summary

`protected boolean` | `showMessage` Determines whether or not the message of the exception should be shown.
`protected boolean` | `showStackTrace` Determines whether or not the stack trace of the exception should be shown.

Fields from javax.servlet.jsp.tagext`.`TagSupport``
`id, pageContext`

Fields from interface javax.servlet.jsp.tagext`.`IterationTag``
`EVAL_BODY_AGAIN`

Fields from interface javax.servlet.jsp.tagext`.`Tag``
`EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE`

## Constructor Summary

Exceptions()

## Method Summary

`public int` | `doStartTag`() Render the exception text based on the display attributes.
`public boolean` | `getShowMessage`() Returns whether or not the exception message is being shown.
`public boolean` | `getShowStackTrace`() Returns whether or not the stack trace is being shown.
`protected void` | `localRelease`() Release any acquired resources.
`public void` | `setShowMessage`(boolean showMessage) Set whether or not the exception message is being shown.
`public void` | `setShowStackTrace`(boolean showStackTrace) Set whether or not the stack trace is being shown.

Methods from `javax.servlet.jsp.tagext.`TagSupport``
`doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue`

Methods from class `java.lang.`Object``
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Methods from interface `javax.servlet.jsp.tagext.`IterationTag``
`doAfterBody`

Methods from interface `javax.servlet.jsp.tagext.`Tag``
`doEndTag, doStartTag, getParent, release, setPageContext, setParent`

## Field Detail

### showMessage

    protected boolean showMessage

  Determines whether or not the message of the exception should be shown. Defaults to true.

### showStackTrace

    protected boolean showStackTrace

  Determines whether or not the stack trace of the exception should be shown. Defaults to false.

## Constructor Detail

### Exceptions

    public Exceptions()

## Method Detail

### doStartTag() Method

    public int doStartTag()
         throws JspException

Render the exception text based on the display attributes.

Overrides
  `TagSupport.doStartTag()`

#### Exceptions

``JspException``
  if a JSP exception has occurred

### getShowMessage() Method

    public boolean getShowMessage()

Returns whether or not the exception message is being shown.

#### Returns

the showMessage state

### getShowStackTrace() Method

    public boolean getShowStackTrace()

Returns whether or not the stack trace is being shown.

#### Returns

the showStackTrace state

### localRelease() Method

    protected void localRelease()

Release any acquired resources.

### setShowMessage(boolean) Method

    public void setShowMessage(boolean showMessage)

Set whether or not the exception message is being shown.

#### Parameters

showMessage
  - true or false depending on the setting desired

### setShowStackTrace(boolean) Method

    public void setShowStackTrace(boolean showStackTrace)

Set whether or not the stack trace is being shown.

#### Parameters

showStackTrace
  - true or false depending on the setting desired