|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
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 |
---|
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |