Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordonald.g.dunne2014-07-31 15:18:02 -0400
committerRoberto E. Escobar2014-08-28 19:59:45 -0400
commit9ac55539ce1092699c80a8b2ca9cf138b1ad5875 (patch)
tree7a478efbe6986c0fdaf796adc24aec12ba3b2a17 /plugins/org.eclipse.osee.framework.messaging
parent39e4ed06a8c7e2b113847f49c46678318be558ec (diff)
downloadorg.eclipse.osee-9ac55539ce1092699c80a8b2ca9cf138b1ad5875.tar.gz
org.eclipse.osee-9ac55539ce1092699c80a8b2ca9cf138b1ad5875.tar.xz
org.eclipse.osee-9ac55539ce1092699c80a8b2ca9cf138b1ad5875.zip
refinement: Improve ActiveMQ unmarshall exception
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.java5
1 files changed, 3 insertions, 2 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 c8ec2c2970..09999875a4 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
@@ -38,8 +38,9 @@ class ActiveMqUtil {
if (clazz != null) {
try {
messageBody = JAXBUtil.unmarshal(text, clazz);
- } catch (UnsupportedEncodingException ex) {
- OseeExceptions.wrapAndThrow(ex);
+ } catch (Exception ex) {
+ throw new OseeCoreException(ex.getCause(), "Unmarshal exception for text [%s] and class [%s]", text,
+ clazz);
}
} else {
messageBody = text;

Back to the top