public static interface PortalException.IPortalExceptionDelegate
By implementing this interface and registering your implementation with the portal, you can enhance all thrown exceptions to include your own custom information.
PortalException
Modifier and Type | Method and Description |
---|---|
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...
|
void initialize()
Throwable exceptionThrown(String message, Throwable throwable, PortalException portalException)
PortalException
for more information about
the current exception.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