org.eclipse.ecf.core.util
Class ECFRuntimeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.eclipse.ecf.core.util.ECFRuntimeException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
DnsSdDiscoveryException, IDCreateException

public class ECFRuntimeException
extends java.lang.RuntimeException

Since:
3.0
See Also:
Serialized Form

Constructor Summary
ECFRuntimeException()
           
ECFRuntimeException(org.eclipse.core.runtime.IStatus status)
          Creates a new exception with the given status object.
ECFRuntimeException(java.lang.String message)
           
ECFRuntimeException(java.lang.String message, java.lang.Throwable cause)
           
ECFRuntimeException(java.lang.Throwable cause)
           
 
Method Summary
 org.eclipse.core.runtime.IStatus getStatus()
          Returns the status object for this exception.
 
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
 

Constructor Detail

ECFRuntimeException

public ECFRuntimeException()

ECFRuntimeException

public ECFRuntimeException(java.lang.String message)
Parameters:
message - message associated with exception

ECFRuntimeException

public ECFRuntimeException(java.lang.Throwable cause)
Parameters:
cause - the cause of the new exception

ECFRuntimeException

public ECFRuntimeException(java.lang.String message,
                           java.lang.Throwable cause)
Parameters:
message -
cause -

ECFRuntimeException

public ECFRuntimeException(org.eclipse.core.runtime.IStatus status)
Creates a new exception with the given status object. The message of the given status is used as the exception message.

Parameters:
status - the status object to be associated with this exception
Method Detail

getStatus

public org.eclipse.core.runtime.IStatus getStatus()
Returns the status object for this exception.

IMPORTANT:
The result must NOT be used to log a CoreException (e.g., using yourPlugin.getLog().log(status);), since that code pattern hides the original stacktrace. Instead, create a new Status with your plug-in ID and this CoreException, and log that new status.

Returns:
a status object