Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/exception/OseeExceptions.java')
-rw-r--r--plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/exception/OseeExceptions.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/exception/OseeExceptions.java b/plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/exception/OseeExceptions.java
index 232e0345ccb..5813116d32e 100644
--- a/plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/exception/OseeExceptions.java
+++ b/plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/exception/OseeExceptions.java
@@ -20,10 +20,14 @@ public final class OseeExceptions {
}
public static void wrapAndThrow(Throwable ex) throws OseeCoreException {
+ throw wrap(ex);
+ }
+
+ public static OseeCoreException wrap(Throwable ex) {
if (ex instanceof OseeCoreException) {
- throw (OseeCoreException) ex;
+ return (OseeCoreException) ex;
} else {
- throw new OseeWrappedException(ex);
+ return new OseeWrappedException(ex);
}
}
} \ No newline at end of file

Back to the top