public void printStackTrace(java.io.PrintWriter pw)
For debugging only. Many PortalExceptions have their root cause in an internal
(i.e. non-API) SAE exception. In such cases, the portal API will catch the
internal exception and immediately throw a PortalException subclass instance. As a
result, the stack trace of most PortalExceptions is of little use for debugging.
To aid in debugging,
the portal API may in some cases save the original internal exception as a field in the PortalException
that it throws. If it does so, this method will provide the stack trace from that original internal
exception. If it does not, this method will provide the less useful stack trace from the
PortalException subclass instance.