SilverStream
Application Server 3.5

com.sssw.rt.util
Interface AgiParentedException

All Known Implementing Classes:
AgoApplicationException, AgoException

public interface AgiParentedException

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

getExceptionParent

public Throwable getExceptionParent()
Returns the exception that caused this exception.
Example:
 	Throwable parent = ex.getExceptionParent();
 

getMessage

public String getMessage(Locale locale)
Returns the message describing this exception.
Parameters:
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.
Example:
 	String exMessage = ex.getMessage(clientLocale);
 

SilverStream
Application Server 3.5