public class WebException
extends java.lang.Exception
/exception/web.jsp
page which will display the error message in a user friendly format.Modifier and Type | Field and Description |
---|---|
private java.lang.String |
detail
A more detailed description of the error message.
|
private java.lang.String |
pageType
The type of page to display the error message in.
|
private static long |
serialVersionUID |
private java.lang.String |
title
The title of the error message.
|
Constructor and Description |
---|
WebException(java.lang.String pageType,
java.lang.String title,
java.lang.String detail)
Create a new
WebException . |
WebException(java.lang.String pageType,
java.lang.String title,
java.lang.String detail,
java.lang.Object... parameters)
Create a new
WebException . |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDetail()
Get the detailed description of the error message.
|
java.lang.String |
getPageType()
Get the page type to display the error message in.
|
java.lang.String |
getTitle()
Get the title of the error message.
|
private static final long serialVersionUID
private java.lang.String title
private java.lang.String detail
private java.lang.String pageType
public WebException(java.lang.String pageType, java.lang.String title, java.lang.String detail)
WebException
.pageType
- The type of page to use for the error message, the valid values are
defined by the <base:page<
taglibtitle
- The title of the error messagedetail
- A detailed description of the errorpublic WebException(java.lang.String pageType, java.lang.String title, java.lang.String detail, java.lang.Object... parameters)
WebException
.pageType
- The type of page to use for the error message, the valid values are
defined by the <base:page<
taglibtitle
- The title of the error messagedetail
- A detailed description of the error, including parameter
placeholders of the form {1}, {2}, etc.parameters
- An array of parameters, which will replace the
placeholders in the detailed messagepublic java.lang.String getPageType()
public java.lang.String getTitle()
public java.lang.String getDetail()