com.stellent.cis.client.command
Class CommandException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.stellent.cis.common.exception.BaseException
              extended by com.stellent.cis.client.command.CommandException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
CommandClientConnectException, CommandCreateException, CommandNotFoundException

public class CommandException
extends BaseException

Base class for exceptions thrown within an ICommand object.

See Also:
Serialized Form

Field Summary
static int BADPARAM_ERROR
          Indicates the parameters supplied are invalid
static int FRAMEWORK_ERROR
          Indicates a framework error has occurred
static int REPOSITORY_ERROR
          Indicates that repository rejected request
 
Fields inherited from class com.stellent.cis.common.exception.BaseException
m_isWrapper
 
Constructor Summary
CommandException()
           
CommandException(java.lang.String message)
           
CommandException(java.lang.String message, java.lang.Throwable cause)
           
CommandException(java.lang.Throwable cause)
           
 
Method Summary
 java.lang.Throwable getRootCause()
          Unrolls the exception stack and returns the last error in the stack
 int getType()
           
 
Methods inherited from class com.stellent.cis.common.exception.BaseException
isWrapper
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, 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
 

Field Detail

FRAMEWORK_ERROR

public static final int FRAMEWORK_ERROR
Indicates a framework error has occurred

See Also:
Constant Field Values

BADPARAM_ERROR

public static final int BADPARAM_ERROR
Indicates the parameters supplied are invalid

See Also:
Constant Field Values

REPOSITORY_ERROR

public static final int REPOSITORY_ERROR
Indicates that repository rejected request

See Also:
Constant Field Values
Constructor Detail

CommandException

public CommandException()

CommandException

public CommandException(java.lang.String message)

CommandException

public CommandException(java.lang.String message,
                        java.lang.Throwable cause)

CommandException

public CommandException(java.lang.Throwable cause)
Method Detail

getType

public int getType()
Returns:
The type of the root cause of this exception {FRAMEWORK_ERROR, BADPARAM_ERROR, REPOSITORY_ERROR}

getRootCause

public java.lang.Throwable getRootCause()
Unrolls the exception stack and returns the last error in the stack

Returns:
the root exception class