com.ibm.websphere.ems
Class CMMException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.ibm.websphere.ems.CMMException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ConfigurationException, FormatException, IllegalStateException, TimeoutException, TransportException

public class CMMException
extends java.lang.Exception

Parent class for all CMM exceptions.

See Also:
Serialized Form

Constructor Summary
CMMException(java.lang.String reason)
          Constructor.
CMMException(java.lang.String reason, java.lang.Exception linkedException)
          Constructor.
 
Method Summary
 boolean equals(java.lang.Object other)
          Compare this CMMException with the given Object for equality.
 java.lang.Exception getLinkedException()
          Gets the exception linked to this one.
 int hashCode()
          Return the hash code for this CMMException.
 java.lang.String toString()
          Returns a string representation of this CMMException.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CMMException

public CMMException(java.lang.String reason)
Constructor.

Parameters:
reason - a description of the exception

CMMException

public CMMException(java.lang.String reason,
                    java.lang.Exception linkedException)
Constructor.

Parameters:
reason - a description of the exception
linkedException - the linked exception
Method Detail

getLinkedException

public final java.lang.Exception getLinkedException()
Gets the exception linked to this one.

Returns:
the linked exception, null if none

equals

public boolean equals(java.lang.Object other)
Compare this CMMException with the given Object for equality.

Parameters:
other - the other object to compare with
Returns:
true if, and only if, the object is equal

hashCode

public int hashCode()
Return the hash code for this CMMException.

Returns:
the hash code

toString

public java.lang.String toString()
Returns a string representation of this CMMException.

Returns:
a string representation