Package org.eclipse.ecf.core.util
Class ECFRuntimeException
- java.lang.Object
- 
- java.lang.Throwable
- 
- java.lang.Exception
- 
- java.lang.RuntimeException
- 
- org.eclipse.ecf.core.util.ECFRuntimeException
 
 
 
 
- 
- All Implemented Interfaces:
- Serializable
 - Direct Known Subclasses:
- DnsSdDiscoveryException,- IDCreateException
 
 public class ECFRuntimeException extends RuntimeException - Since:
- 3.0
- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description ECFRuntimeException()ECFRuntimeException(String message)ECFRuntimeException(String message, Throwable cause)ECFRuntimeException(Throwable cause)ECFRuntimeException(org.eclipse.core.runtime.IStatus status)Creates a new exception with the given status object.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.core.runtime.IStatusgetStatus()Returns the status object for this exception.- 
Methods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
- 
 
- 
- 
- 
Constructor Detail- 
ECFRuntimeExceptionpublic ECFRuntimeException() 
 - 
ECFRuntimeExceptionpublic ECFRuntimeException(String message) - Parameters:
- message- message associated with exception
 
 - 
ECFRuntimeExceptionpublic ECFRuntimeException(Throwable cause) - Parameters:
- cause- the cause of the new exception
 
 - 
ECFRuntimeExceptionpublic ECFRuntimeException(String message, Throwable cause) - Parameters:
- message-
- cause-
 
 - 
ECFRuntimeExceptionpublic 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- 
getStatuspublic org.eclipse.core.runtime.IStatus getStatus() Returns the status object for this exception.IMPORTANT: 
 The result must NOT be used to log aCoreException(e.g., usingyourPlugin.getLog().log(status);), since that code pattern hides the original stacktrace. Instead, create a newStatuswith your plug-in ID and thisCoreException, and log that new status.- Returns:
- a status object
 
 
- 
 
-