com.sun.portal.providers.context
Class ProviderContextException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.sun.portal.providers.context.ProviderContextException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
PropertiesFilterException

public class ProviderContextException
extends Exception

This exception is a generic superclass for all provider related exceptions. All exceptions deliberately-thrown from a provider should be a subclass of this.

See Also:
Serialized Form

Field Summary
protected  Throwable wrapped
          The root cause of the exception, or null if this exception is the root cause.
 
Constructor Summary
ProviderContextException(String msg)
          Constructs a new exception with the specified message, indicating an error in the provider context as happened.

ProviderContextException(String msg, Throwable e)
          Constructs a new exception with the specified message, and the original exception or error, indicating an error in the provider context as happened.

 
Method Summary
 Throwable getWrapped()
          Returns the Throwable object which is the root cause of the exception.
 void printStackTrace()
          Prints the stack backtrace.
 void printStackTrace(PrintStream s)
          Prints the stack backtrace to the specified print stream.
 void printStackTrace(PrintWriter s)
          Prints the stack backtrace to the specified print writer.
 String toString()
          Returns a descriptive message of this exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

wrapped

protected Throwable wrapped
The root cause of the exception, or null if this exception is the root cause.

Constructor Detail

ProviderContextException

public ProviderContextException(String msg)
Constructs a new exception with the specified message, indicating an error in the provider context as happened.

Parameters:
msg - The descriptive message.

ProviderContextException

public ProviderContextException(String msg,
                                Throwable e)
Constructs a new exception with the specified message, and the original exception or error, indicating an error in the provider context as happened.

Parameters:
msg - The descriptive message.
e - The original exception or error.
Method Detail

getWrapped

public Throwable getWrapped()
Returns the Throwable object which is the root cause of the exception. It returns null if this exception is the root cause.


toString

public String toString()
Returns a descriptive message of this exception. If the wrapped object is not null, the appends the description of the wrapped object to the result.


printStackTrace

public void printStackTrace()
Prints the stack backtrace. If the wrapped object is not null then it also prints the stack backtrace of that exception.


printStackTrace

public void printStackTrace(PrintStream s)
Prints the stack backtrace to the specified print stream. If the wrapped object is not null then it also prints the stack backtrace of that exception.


printStackTrace

public void printStackTrace(PrintWriter s)
Prints the stack backtrace to the specified print writer. If the wrapped object is not null then it also prints the stack backtrace of that exception.