com.stellent.cis.client.command
Class CommandClientConnectException

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
                  extended by com.stellent.cis.client.command.CommandClientConnectException
All Implemented Interfaces:
java.io.Serializable

public class CommandClientConnectException
extends CommandException

Error thrown when attempting to connect to the CIS Command Server instance

See Also:
Serialized Form

Field Summary
protected  java.util.List m_errors
           
 
Fields inherited from class com.stellent.cis.client.command.CommandException
BADPARAM_ERROR, FRAMEWORK_ERROR, REPOSITORY_ERROR
 
Fields inherited from class com.stellent.cis.common.exception.BaseException
m_isWrapper
 
Constructor Summary
CommandClientConnectException()
           
CommandClientConnectException(java.lang.String message)
           
CommandClientConnectException(java.lang.String message, java.util.List errors)
           
 
Method Summary
 void addError(java.lang.Throwable error)
          Add an error to this throwable object.
 java.util.List getErrors()
          Gets the list of errors added to this throwable object.
 java.lang.String getMessage()
          Returns the error message string of this throwable object.
 void printStackTrace()
          Prints this Throwable and its backtrace to the standard error stream.
 void printStackTrace(java.io.PrintStream s)
          Prints this Throwable and its backtrace to the specified print stream.
 void printStackTrace(java.io.PrintWriter s)
          Prints this Throwable and its backtrace to the specified print writer.
 
Methods inherited from class com.stellent.cis.client.command.CommandException
getRootCause, getType
 
Methods inherited from class com.stellent.cis.common.exception.BaseException
isWrapper
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_errors

protected java.util.List m_errors
Constructor Detail

CommandClientConnectException

public CommandClientConnectException()

CommandClientConnectException

public CommandClientConnectException(java.lang.String message)

CommandClientConnectException

public CommandClientConnectException(java.lang.String message,
                                     java.util.List errors)
Method Detail

addError

public void addError(java.lang.Throwable error)
Add an error to this throwable object. Adding an error adds to the list of errors that caused this error.

Parameters:
error - The Throwable object that caused this Exception.

getErrors

public java.util.List getErrors()
Gets the list of errors added to this throwable object.

Returns:
a List of Throwable objects

getMessage

public java.lang.String getMessage()
Returns the error message string of this throwable object.

Overrides:
getMessage in class java.lang.Throwable
Returns:
the error message string of this Throwable object if it was created with an error message string; or null if it was created with no error message.

printStackTrace

public void printStackTrace()
Prints this Throwable and its backtrace to the standard error stream. This method prints a stack trace for this Throwable object on the error output stream that is the value of the field System.err. The first line of output contains the result of the Throwable.toString() method for this object. Remaining lines represent data previously recorded by the method Throwable.fillInStackTrace(). The format of this information depends on the implementation, but the following example may be regarded as typical:
 java.lang.NullPointerException
         at MyClass.mash(MyClass.java:9)
         at MyClass.crunch(MyClass.java:6)
         at MyClass.main(MyClass.java:3)
 
This example was produced by running the program:

 class MyClass {

     public static void main(String[] argv) {
         crunch(null);
     }
     static void crunch(int[] a) {
         mash(a);
     }

     static void mash(int[] b) {
         System.out.println(b[0]);
     }
 }
 

Overrides:
printStackTrace in class java.lang.Throwable
See Also:
System.err

printStackTrace

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

Overrides:
printStackTrace in class java.lang.Throwable
Parameters:
s - PrintStream to use for output

printStackTrace

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

Overrides:
printStackTrace in class java.lang.Throwable
Parameters:
s - PrintWriter to use for output
Since:
JDK1.1