com.novell.ecb
Class CommandException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--com.novell.ecb.CommandException
All Implemented Interfaces:
RootCause, java.io.Serializable
Direct Known Subclasses:
InvalidStateException, NotReadyException, SecretStoreException

public class CommandException
extends java.lang.Exception
implements RootCause

CommandException is the base class for all command exceptions.

See Also:
Serialized Form

Constructor Summary
CommandException()
          Constructs a CommandException with no arguments.
CommandException(java.lang.String msg)
          Constructs a CommandException with a message.
CommandException(java.lang.String msg, java.lang.Throwable t)
          Constructs a CommandException with a Throwable object.
 
Method Summary
 java.lang.Throwable getRootCause()
          Returns the Throwable object, if available.
 void printCauseStackTrace()
          Prints this Throwable and its backtrace to the standard error stream.
 void printCauseStackTrace(java.io.PrintStream s)
          Prints this Throwable and its backtrace to the specified print stream.
 void printCauseStackTrace(java.io.PrintWriter w)
          Prints this Throwable and its backtrace to the specified print writer.
 void setRootCause(java.lang.Throwable t)
          Sets the Throwable object.
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CommandException

public CommandException()
Constructs a CommandException with no arguments.


CommandException

public CommandException(java.lang.String msg)
Constructs a CommandException with a message.

Parameters:
msg - The message associated with this exception.

CommandException

public CommandException(java.lang.String msg,
                        java.lang.Throwable t)
Constructs a CommandException with a Throwable object.

Parameters:
msg - The message associated with this exception.
t - The Throwable object.
Method Detail

getRootCause

public java.lang.Throwable getRootCause()
Returns the Throwable object, if available.

Specified by:
getRootCause in interface RootCause
Returns:
Throwable The Throwable object.

setRootCause

public void setRootCause(java.lang.Throwable t)
Sets the Throwable object.

Parameters:
t - The Throwable object.

printCauseStackTrace

public void printCauseStackTrace()
Prints this Throwable and its backtrace to the standard error stream.

Specified by:
printCauseStackTrace in interface RootCause

printCauseStackTrace

public void printCauseStackTrace(java.io.PrintStream s)
Prints this Throwable and its backtrace to the specified print stream.

Specified by:
printCauseStackTrace in interface RootCause
Parameters:
s - The PrintStream to be used for printing the stack trace of the root exception.

printCauseStackTrace

public void printCauseStackTrace(java.io.PrintWriter w)
Prints this Throwable and its backtrace to the specified print writer.

Specified by:
printCauseStackTrace in interface RootCause
Parameters:
w - The PrintWriter to be used for printing the stack trace of the root exception.


Copyright © 2001-2003 Novell, Inc. All Rights Reserved.