You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ta...@apache.org on 2015/01/28 19:00:25 UTC

qpid-jms git commit: Add a JMS exception for transaction commit being in doubt.

Repository: qpid-jms
Updated Branches:
  refs/heads/master da9680b20 -> 023676820


Add a JMS exception for transaction commit being in doubt.

Project: http://git-wip-us.apache.org/repos/asf/qpid-jms/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-jms/commit/02367682
Tree: http://git-wip-us.apache.org/repos/asf/qpid-jms/tree/02367682
Diff: http://git-wip-us.apache.org/repos/asf/qpid-jms/diff/02367682

Branch: refs/heads/master
Commit: 02367682013c392ebf22fb9ec973e5cf1d16c478
Parents: da9680b
Author: Timothy Bish <ta...@gmail.com>
Authored: Wed Jan 28 12:50:29 2015 -0500
Committer: Timothy Bish <ta...@gmail.com>
Committed: Wed Jan 28 12:57:48 2015 -0500

----------------------------------------------------------------------
 .../jms/JmsTransactionInDoubtException.java     | 35 ++++++++++++++++++++
 1 file changed, 35 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/02367682/qpid-jms-client/src/main/java/org/apache/qpid/jms/JmsTransactionInDoubtException.java
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/main/java/org/apache/qpid/jms/JmsTransactionInDoubtException.java b/qpid-jms-client/src/main/java/org/apache/qpid/jms/JmsTransactionInDoubtException.java
new file mode 100644
index 0000000..5560a1e
--- /dev/null
+++ b/qpid-jms-client/src/main/java/org/apache/qpid/jms/JmsTransactionInDoubtException.java
@@ -0,0 +1,35 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.qpid.jms;
+
+import javax.jms.JMSException;
+
+/**
+ * JMSException derivative that defines that a TX outcome is unknown.
+ */
+public class JmsTransactionInDoubtException extends JMSException {
+
+    private static final long serialVersionUID = 4937372602950141285L;
+
+    public JmsTransactionInDoubtException(String reason, String errorCode) {
+        super(reason, errorCode);
+    }
+
+    public JmsTransactionInDoubtException(String reason) {
+        super(reason);
+    }
+}


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org