public class WebException extends Exception
/exception/web.jsp
page which will display the error message in a user friendly format.Modifier and Type | Field and Description |
---|---|
private String |
detail
A more detailed description of the error message.
|
private String |
pageType
The type of page to display the error message in.
|
private static long |
serialVersionUID |
private String |
title
The title of the error message.
|
Constructor and Description |
---|
WebException(String pageType,
String title,
String detail)
Create a new
WebException . |
WebException(String pageType,
String title,
String detail,
Object... parameters)
Create a new
WebException . |
Modifier and Type | Method and Description |
---|---|
String |
getDetail()
Get the detailed description of the error message.
|
String |
getPageType()
Get the page type to display the error message in.
|
String |
getTitle()
Get the title of the error message.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
private static final long serialVersionUID
private String title
private String detail
private String pageType
public WebException(String pageType, String title, 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(String pageType, String title, String detail, 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 String getPageType()
public String getTitle()
public String getDetail()