summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules/binding-jms/src/main/java/org
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2010-06-21 12:53:31 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2010-06-21 12:53:31 +0000
commit20f2eba6f4622b605173ed163bba508fd232c132 (patch)
tree658d6306c3ede811b0870440d86f5bebe2aae0fb /sca-java-2.x/trunk/modules/binding-jms/src/main/java/org
parentcc22c10642e9e496592f71aa496b75ff40dbe326 (diff)
Change all exception throwing to be Monitor errors
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@956554 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/binding-jms/src/main/java/org')
-rw-r--r--sca-java-2.x/trunk/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/JMSBindingProcessor.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/sca-java-2.x/trunk/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/JMSBindingProcessor.java b/sca-java-2.x/trunk/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/JMSBindingProcessor.java
index 66fa4fc65e..63d85b362a 100644
--- a/sca-java-2.x/trunk/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/JMSBindingProcessor.java
+++ b/sca-java-2.x/trunk/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/JMSBindingProcessor.java
@@ -305,13 +305,13 @@ public class JMSBindingProcessor extends BaseStAXArtifactProcessor implements St
if (jmsBinding.getRequestWireFormat() == null) {
jmsBinding.setRequestWireFormat((WireFormat) extension);
} else {
- throw new ContributionReadException("The request wireformat has already been defined. " + "Only one request wire format can be specified.");
+ error(monitor, "WireFormatAlreadyDefined", reader, extension.toString());
}
} else if (extension instanceof OperationSelector) {
if (jmsBinding.getOperationSelector() == null) {
jmsBinding.setOperationSelector((OperationSelector) extension);
} else {
- throw new ContributionReadException("More than one operation selector has been specified. " + "Only one operation selector can be specified.");
+ error(monitor, "OpSelectorAlreadyDefined", reader, extension.toString());
}
} else {
@@ -517,7 +517,7 @@ public class JMSBindingProcessor extends BaseStAXArtifactProcessor implements St
if (jmsBinding.getResponseWireFormat() == null) {
jmsBinding.setResponseWireFormat((WireFormat)extension);
} else {
- throw new ContributionReadException("The response wireformat has already been defined. " + "Only one response wire format can be specified.");
+ error(context.getMonitor(), "ResponseWireformatAlreadyDefined", reader, extension.toString());
}
} else {
error(context.getMonitor(), "UnexpectedElement", reader, extension.toString());