org.eclipse.core.commands.common
Class CommandException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.eclipse.core.commands.common.CommandException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ExecutionException, NotDefinedException, NotEnabledException, NotHandledException, ParameterValueConversionException, ParameterValuesException, SerializationException

public abstract class CommandException
extends java.lang.Exception

Signals that an exception occured within the command architecture.

This class is not intended to be extended by clients.

Since:
3.1
See Also:
Serialized Form

Constructor Summary
CommandException(java.lang.String message)
          Creates a new instance of this class with the specified detail message.
CommandException(java.lang.String message, java.lang.Throwable cause)
          Creates a new instance of this class with the specified detail message and cause.
 
Method Summary
 java.lang.Throwable getCause()
          Returns the cause of this throwable or null if the cause is nonexistent or unknown.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CommandException

public CommandException(java.lang.String message)
Creates a new instance of this class with the specified detail message.

Parameters:
message - the detail message; may be null.

CommandException

public CommandException(java.lang.String message,
                        java.lang.Throwable cause)
Creates a new instance of this class with the specified detail message and cause.

Parameters:
message - the detail message; may be null.
cause - the cause; may be null.
Method Detail

getCause

public java.lang.Throwable getCause()
Returns the cause of this throwable or null if the cause is nonexistent or unknown.

Overrides:
getCause in class java.lang.Throwable
Returns:
the cause or null