com.bea.wli.worklist.api
Class NotSupportedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.bea.wli.worklist.api.NotSupportedException
All Implemented Interfaces:
Serializable

public class NotSupportedException
extends Exception

Exception thrown when an optional feature of an interface or API is not implemented by a provider and therefor is not supported by the provider.

Since:
9.2
See Also:
Serialized Form

Constructor Summary
NotSupportedException(Exception except)
          Construct a new ProcessAssignmentException exception wrapping an underlying exception.
NotSupportedException(String message)
          Construct a new NotSupportedException exception with a message.
NotSupportedException(String message, Exception except)
          Construct a new NotSupportedException exception wrapping an underlying exception and providing a message.
 
Method Summary
 Exception getException()
          Returns the underlying exception, if this exception wraps another exception.
 String getMessage()
          Return a detail message for this exception.
 void printStackTrace()
           
 void printStackTrace(PrintStream stream)
           
 void printStackTrace(PrintWriter writer)
           
 String toString()
          Override toString to pick up any embedded exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NotSupportedException

public NotSupportedException(String message,
                             Exception except)
Construct a new NotSupportedException exception wrapping an underlying exception and providing a message.

Parameters:
message - The exception message
except - The underlying exception

NotSupportedException

public NotSupportedException(String message)
Construct a new NotSupportedException exception with a message.

Parameters:
message - The exception message

NotSupportedException

public NotSupportedException(Exception except)
Construct a new ProcessAssignmentException exception wrapping an underlying exception.

Parameters:
except - The underlying exception
Method Detail

getException

public Exception getException()
Returns the underlying exception, if this exception wraps another exception.

Returns:
The underlying exception, or null

printStackTrace

public void printStackTrace()
Overrides:
printStackTrace in class Throwable

printStackTrace

public void printStackTrace(PrintStream stream)
Overrides:
printStackTrace in class Throwable

printStackTrace

public void printStackTrace(PrintWriter writer)
Overrides:
printStackTrace in class Throwable

getMessage

public String getMessage()
Return a detail message for this exception.

If there is an embedded exception, and if the NestedException has no detail message of its own, this method will return the detail message from the embedded exception.

Overrides:
getMessage in class Throwable
Returns:
The error or warning message.

toString

public String toString()
Override toString to pick up any embedded exception.

Overrides:
toString in class Throwable
Returns:
A string representation of this exception.