|
3.1.1: 2012-03-29 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
net.sf.basedb.clients.web.WebException
public class WebException
This exception can be thrown on any JSP page in BASE. It will be catched
by the server and execution is transferred to /exception/web.jsp
page which will display the error message in a user friendly format.
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
WebException(String pageType,
String title,
String detail)
Create a new WebException. |
|
WebException(String pageType,
String title,
String detail,
Object... parameters)
Create a new WebException. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final long serialVersionUID
private String title
private String detail
private String pageType
| Constructor Detail |
|---|
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 error
public 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 message| Method Detail |
|---|
public String getPageType()
public String getTitle()
public String getDetail()
|
3.1.1: 2012-03-29 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||