|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.sun.portal.providers.context.ProviderContextException
This exception is a generic superclass for all provider related exceptions. All exceptions deliberately-thrown from a provider should be a subclass of this.
Field Summary | |
protected java.lang.Throwable |
wrapped
The root cause of the exception, or null if this exception is the root cause. |
Constructor Summary | |
ProviderContextException(java.lang.String msg)
Constructs a new exception with the specified message, indicating an error in the provider context as happened. |
|
ProviderContextException(java.lang.String msg,
java.lang.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 | |
java.lang.Throwable |
getWrapped()
Returns the Throwable object which is the root cause of
the exception. |
void |
printStackTrace()
Prints the stack backtrace. |
void |
printStackTrace(java.io.PrintStream s)
Prints the stack backtrace to the specified print stream. |
void |
printStackTrace(java.io.PrintWriter s)
Prints the stack backtrace to the specified print writer. |
java.lang.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 |
protected java.lang.Throwable wrapped
Constructor Detail |
public ProviderContextException(java.lang.String msg)
msg
- The descriptive message.public ProviderContextException(java.lang.String msg, java.lang.Throwable e)
exception
or error
, indicating an error in the
provider context as happened.
msg
- The descriptive message.e
- The original exception
or error
.Method Detail |
public java.lang.Throwable getWrapped()
Throwable
object which is the root cause of
the exception. It returns null if this exception is the root cause.
public java.lang.String toString()
wrapped
object is
not null, the appends the description of the wrapped object to the
result.
public void printStackTrace()
wrapped
object is not null then
it also prints the stack backtrace of that exception.
public void printStackTrace(java.io.PrintStream s)
wrapped
object is not null then it also prints the stack
backtrace of that exception.
public void printStackTrace(java.io.PrintWriter s)
wrapped
object is not null then it also prints the stack
backtrace of that exception.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |