|
SilverStream Application Server 3.5 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface implemented by SilverStream exceptions that contain, or "wrap," other exceptions. This allows each level of code to provide more detail about the operation that failed.
For example, an exception trying to update data on a form may be caused by a failure to connect to the server. The AgoUnrecoverableSystemException explains that the update failed and contains the IOException that explains that the attempt to connect to an URL failed.
Method Summary | |
Throwable |
getExceptionParent()
Returns the exception that caused this exception. |
String |
getMessage(Locale locale)
Returns the message describing this exception. |
Method Detail |
public Throwable getExceptionParent()
Throwable parent = ex.getExceptionParent();
public String getMessage(Locale locale)
locale
- the current locale, used for formatting dates, numbers, etc.
The locale is useful when extracting messages on the server which may be
serving clients whose locale is different than the server's locale.String exMessage = ex.getMessage(clientLocale);
|
SilverStream Application Server 3.5 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |