Package 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:
-
Method Summary
Modifier and TypeMethodDescriptionexceptionThrown
(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 this delegate for service An opprotunity to read in any properties files etc...
-
Method Details
-
initialize
void initialize()Initialize this delegate for service An opprotunity to read in any properties files etc... -
exceptionThrown
Gives the delegate a chance to inspect the current exception and optionally replace it with an exception of their own. You may also query thePortalException
for more information about the current exception.- Parameters:
message
- the original message: maybenull
. In the case of localizable exceptions, the message will be NULL.throwable
- the original exception: maybenull
.portalException
- the exception that is being generated- Returns:
- If no throwable is passed in, no return object is necessary
-