Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan D. Brooks2015-12-23 12:02:39 -0500
committerRyan D. Brooks2015-12-23 12:02:39 -0500
commit491e33655af14eb3e0e19c3e68bfb4377eb26efa (patch)
tree1151508caa0c1aead471124941155914a8b57924 /plugins/org.eclipse.osee.framework.messaging
parent707b3e7a293e5fab698327ccaa6fd9d3c0a1965d (diff)
downloadorg.eclipse.osee-491e33655af14eb3e0e19c3e68bfb4377eb26efa.tar.gz
org.eclipse.osee-491e33655af14eb3e0e19c3e68bfb4377eb26efa.tar.xz
org.eclipse.osee-491e33655af14eb3e0e19c3e68bfb4377eb26efa.zip
refactor: Use OseeCoreException.wrap were applicable
Diffstat (limited to 'plugins/org.eclipse.osee.framework.messaging')
-rw-r--r--plugins/org.eclipse.osee.framework.messaging/src/org/eclipse/osee/framework/messaging/internal/activemq/ActiveMqUtil.java3
-rw-r--r--plugins/org.eclipse.osee.framework.messaging/src/org/eclipse/osee/framework/messaging/internal/activemq/ConnectionNodeActiveMq.java5
-rw-r--r--plugins/org.eclipse.osee.framework.messaging/src/org/eclipse/osee/framework/messaging/internal/activemq/ReplyConnectionActiveMqImpl.java3
3 files changed, 4 insertions, 7 deletions
diff --git a/plugins/org.eclipse.osee.framework.messaging/src/org/eclipse/osee/framework/messaging/internal/activemq/ActiveMqUtil.java b/plugins/org.eclipse.osee.framework.messaging/src/org/eclipse/osee/framework/messaging/internal/activemq/ActiveMqUtil.java
index 09999875a4..b11f9bad23 100644
--- a/plugins/org.eclipse.osee.framework.messaging/src/org/eclipse/osee/framework/messaging/internal/activemq/ActiveMqUtil.java
+++ b/plugins/org.eclipse.osee.framework.messaging/src/org/eclipse/osee/framework/messaging/internal/activemq/ActiveMqUtil.java
@@ -18,7 +18,6 @@ import javax.jms.Message;
import javax.jms.ObjectMessage;
import javax.jms.Session;
import javax.jms.TextMessage;
-import org.eclipse.osee.framework.core.exception.OseeExceptions;
import org.eclipse.osee.framework.jdk.core.type.OseeCoreException;
import org.eclipse.osee.framework.messaging.internal.JAXBUtil;
@@ -76,7 +75,7 @@ class ActiveMqUtil {
try {
return JAXBUtil.marshal(body);
} catch (UnsupportedEncodingException ex) {
- OseeExceptions.wrapAndThrow(ex);
+ OseeCoreException.wrapAndThrow(ex);
}
}
return body;
diff --git a/plugins/org.eclipse.osee.framework.messaging/src/org/eclipse/osee/framework/messaging/internal/activemq/ConnectionNodeActiveMq.java b/plugins/org.eclipse.osee.framework.messaging/src/org/eclipse/osee/framework/messaging/internal/activemq/ConnectionNodeActiveMq.java
index c63587c551..0890a53c02 100644
--- a/plugins/org.eclipse.osee.framework.messaging/src/org/eclipse/osee/framework/messaging/internal/activemq/ConnectionNodeActiveMq.java
+++ b/plugins/org.eclipse.osee.framework.messaging/src/org/eclipse/osee/framework/messaging/internal/activemq/ConnectionNodeActiveMq.java
@@ -32,7 +32,6 @@ import javax.jms.Session;
import javax.jms.TemporaryTopic;
import javax.jms.Topic;
import org.apache.activemq.ActiveMQConnectionFactory;
-import org.eclipse.osee.framework.core.exception.OseeExceptions;
import org.eclipse.osee.framework.jdk.core.type.CompositeKeyHashMap;
import org.eclipse.osee.framework.jdk.core.type.OseeCoreException;
import org.eclipse.osee.framework.jdk.core.type.Pair;
@@ -98,7 +97,7 @@ class ConnectionNodeActiveMq implements ConnectionNodeFailoverSupport, MessageLi
connection.start();
started = true;
} catch (Throwable ex) {
- OseeExceptions.wrapAndThrow(ex);
+ OseeCoreException.wrapAndThrow(ex);
}
}
@@ -129,7 +128,7 @@ class ConnectionNodeActiveMq implements ConnectionNodeFailoverSupport, MessageLi
}
} catch (Exception ex) {
statusCallback.fail(ex);
- OseeExceptions.wrapAndThrow(ex);
+ OseeCoreException.wrapAndThrow(ex);
}
}
diff --git a/plugins/org.eclipse.osee.framework.messaging/src/org/eclipse/osee/framework/messaging/internal/activemq/ReplyConnectionActiveMqImpl.java b/plugins/org.eclipse.osee.framework.messaging/src/org/eclipse/osee/framework/messaging/internal/activemq/ReplyConnectionActiveMqImpl.java
index e43bac09cc..474edc95b8 100644
--- a/plugins/org.eclipse.osee.framework.messaging/src/org/eclipse/osee/framework/messaging/internal/activemq/ReplyConnectionActiveMqImpl.java
+++ b/plugins/org.eclipse.osee.framework.messaging/src/org/eclipse/osee/framework/messaging/internal/activemq/ReplyConnectionActiveMqImpl.java
@@ -16,7 +16,6 @@ import javax.jms.JMSException;
import javax.jms.Message;
import javax.jms.MessageProducer;
import javax.jms.Session;
-import org.eclipse.osee.framework.core.exception.OseeExceptions;
import org.eclipse.osee.framework.jdk.core.type.OseeCoreException;
import org.eclipse.osee.framework.logging.OseeLog;
import org.eclipse.osee.framework.messaging.OseeMessagingStatusCallback;
@@ -62,7 +61,7 @@ class ReplyConnectionActiveMqImpl implements ReplyConnection {
OseeLog.logf(Activator.class, Level.INFO, "Sending Reply Message %s", message.toString());
} catch (JMSException ex) {
statusCallback.fail(ex);
- OseeExceptions.wrapAndThrow(ex);
+ OseeCoreException.wrapAndThrow(ex);
}
}

Back to the top