Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkuppe2008-12-16 13:47:19 +0000
committermkuppe2008-12-16 13:47:19 +0000
commitdb725d061a8d427cb8c4b9bc06f7357de81149a1 (patch)
treeeec550b884da63519e64edc8ff73929155bcfb59 /framework/bundles/org.eclipse.ecf.identity/src/org
parent275726303ec406199eb868e35cf879efa45dea15 (diff)
downloadorg.eclipse.ecf-db725d061a8d427cb8c4b9bc06f7357de81149a1.tar.gz
org.eclipse.ecf-db725d061a8d427cb8c4b9bc06f7357de81149a1.tar.xz
org.eclipse.ecf-db725d061a8d427cb8c4b9bc06f7357de81149a1.zip
REOPENED - bug 254872: Convert org.eclipse.ecf.core.identity.IDCreateException into RuntimeException
https://bugs.eclipse.org/bugs/show_bug.cgi?id=254872
Diffstat (limited to 'framework/bundles/org.eclipse.ecf.identity/src/org')
-rw-r--r--framework/bundles/org.eclipse.ecf.identity/src/org/eclipse/ecf/core/util/ECFRuntimeException.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/framework/bundles/org.eclipse.ecf.identity/src/org/eclipse/ecf/core/util/ECFRuntimeException.java b/framework/bundles/org.eclipse.ecf.identity/src/org/eclipse/ecf/core/util/ECFRuntimeException.java
index 0233efbe5..03dc87000 100644
--- a/framework/bundles/org.eclipse.ecf.identity/src/org/eclipse/ecf/core/util/ECFRuntimeException.java
+++ b/framework/bundles/org.eclipse.ecf.identity/src/org/eclipse/ecf/core/util/ECFRuntimeException.java
@@ -13,6 +13,7 @@ package org.eclipse.ecf.core.util;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
+import org.eclipse.ecf.internal.core.identity.Activator;
public class ECFRuntimeException extends RuntimeException {
@@ -29,7 +30,7 @@ public class ECFRuntimeException extends RuntimeException {
* message associated with exception
*/
public ECFRuntimeException(String message) {
- super(message);
+ this(message, null);
}
/**
@@ -37,7 +38,7 @@ public class ECFRuntimeException extends RuntimeException {
* the cause of the new exception
*/
public ECFRuntimeException(Throwable cause) {
- super(cause);
+ this(cause.getMessage(), cause);
}
/**
@@ -45,7 +46,7 @@ public class ECFRuntimeException extends RuntimeException {
* @param cause
*/
public ECFRuntimeException(String message, Throwable cause) {
- super(message, cause);
+ this(new Status(IStatus.ERROR, Activator.PLUGIN_ID, 0, ((message == null) ? "" : message), cause)); //$NON-NLS-1$
}
/**
@@ -55,7 +56,7 @@ public class ECFRuntimeException extends RuntimeException {
* @param status the status object to be associated with this exception
*/
public ECFRuntimeException(IStatus status) {
- super(status.getMessage(), status.getException());
+ super(status.getMessage());
this.status = status;
}

Back to the top