com.webmethods.portal
Interface PortalException.IPortalExceptionDelegate

Enclosing class:
PortalException

public static interface PortalException.IPortalExceptionDelegate

The PortalException uses the registered delegate each time a new PortalException is constructed. It will invoke the IPortalExceptionDelegate.exceptionThrown function which gives the delegate an oprotunity to replace the original exception with a custom exception.

By implementing this interface and registering your implementation with the portal, you can enhance all thrown exceptions to include your own custom information.

See Also:
PortalException

Method Summary
 Throwable exceptionThrown(String message, Throwable throwable, PortalException portalException)
          Gives the delegate a chance to inspect the current exception and optionally replace it with an exception of their own.
 void initialize()
          Initialize this delegate for service An opprotunity to read in any properties files etc...
 

Method Detail

initialize

void initialize()
Initialize this delegate for service An opprotunity to read in any properties files etc...


exceptionThrown

Throwable exceptionThrown(String message,
                          Throwable throwable,
                          PortalException portalException)
Gives the delegate a chance to inspect the current exception and optionally replace it with an exception of their own. You may also query the PortalException for more information about the current exception.

Parameters:
message - the original message: maybe null. In the case of localizable exceptions, the message will be NULL.
throwable - the original exception: maybe null.
portalException - the exception that is being generated
Returns:
If no throwable is passed in, no return object is necessary