Core API 7.7
Class PortalException

  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by
All Implemented Interfaces:
Direct Known Subclasses:
NonUniqueUserException, OverloadException, SspException, UnknownServiceException, UnknownSubscriptionException, UnknownUserException, UnsupportedException

public class PortalException
extends Exception

This is the superclass of all exceptions thrown by the Portal API.

See Also:
Serialized Form

Method Summary
 void printStackTrace(PrintWriter pw)
          For debugging only.
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, setStackTrace, toString
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

Method Detail


public void printStackTrace(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.

printStackTrace in class Throwable

Core API 7.7