You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ro...@apache.org on 2014/10/28 20:00:24 UTC

[05/10] git commit: add the more general error-condition archetype rather than just transaction-error specifically

add the more general error-condition archetype rather than just transaction-error specifically


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

Branch: refs/heads/master
Commit: 39fc8b9e894375ab72b6a72e35d7e25f47cc1863
Parents: a33cc98
Author: Robert Gemmell <ro...@apache.org>
Authored: Tue Oct 28 18:25:54 2014 +0000
Committer: Robert Gemmell <ro...@apache.org>
Committed: Tue Oct 28 18:25:54 2014 +0000

----------------------------------------------------------------------
 .../jms/test/testpeer/basictypes/AmqpError.java | 50 ++++++++++++++++++++
 .../testpeer/basictypes/ConnectionError.java    | 40 ++++++++++++++++
 .../jms/test/testpeer/basictypes/LinkError.java | 42 ++++++++++++++++
 .../test/testpeer/basictypes/SessionError.java  | 41 ++++++++++++++++
 .../test/testpeer/basictypes/generate-types.xsl |  2 +-
 5 files changed, 174 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/39fc8b9e/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/AmqpError.java
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/AmqpError.java b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/AmqpError.java
new file mode 100644
index 0000000..c946545
--- /dev/null
+++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/AmqpError.java
@@ -0,0 +1,50 @@
+/*
+ * 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.test.testpeer.basictypes;
+
+
+import org.apache.qpid.proton.amqp.Symbol;
+
+
+/**
+ * Generated by generate-types.xsl, which resides in this package.
+ */
+public class AmqpError {
+
+    public static final Symbol INTERNAL_ERROR = Symbol.valueOf("amqp:internal-error");
+    public static final Symbol NOT_FOUND = Symbol.valueOf("amqp:not-found");
+    public static final Symbol UNAUTHORIZED_ACCESS = Symbol.valueOf("amqp:unauthorized-access");
+    public static final Symbol DECODE_ERROR = Symbol.valueOf("amqp:decode-error");
+    public static final Symbol RESOURCE_LIMIT_EXCEEDED = Symbol.valueOf("amqp:resource-limit-exceeded");
+    public static final Symbol NOT_ALLOWED = Symbol.valueOf("amqp:not-allowed");
+    public static final Symbol INVALID_FIELD = Symbol.valueOf("amqp:invalid-field");
+    public static final Symbol NOT_IMPLEMENTED = Symbol.valueOf("amqp:not-implemented");
+    public static final Symbol RESOURCE_LOCKED = Symbol.valueOf("amqp:resource-locked");
+    public static final Symbol PRECONDITION_FAILED = Symbol.valueOf("amqp:precondition-failed");
+    public static final Symbol RESOURCE_DELETED = Symbol.valueOf("amqp:resource-deleted");
+    public static final Symbol ILLEGAL_STATE = Symbol.valueOf("amqp:illegal-state");
+    public static final Symbol FRAME_SIZE_TOO_SMALL = Symbol.valueOf("amqp:frame-size-too-small");
+
+    private AmqpError() {
+      //No instances
+    }
+}
+

http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/39fc8b9e/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/ConnectionError.java
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/ConnectionError.java b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/ConnectionError.java
new file mode 100644
index 0000000..3f817ca
--- /dev/null
+++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/ConnectionError.java
@@ -0,0 +1,40 @@
+/*
+ * 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.test.testpeer.basictypes;
+
+
+import org.apache.qpid.proton.amqp.Symbol;
+
+
+/**
+ * Generated by generate-types.xsl, which resides in this package.
+ */
+public class ConnectionError {
+
+    public static final Symbol CONNECTION_FORCED = Symbol.valueOf("amqp:connection:forced");
+    public static final Symbol FRAMING_ERROR = Symbol.valueOf("amqp:connection:framing-error");
+    public static final Symbol REDIRECT = Symbol.valueOf("amqp:connection:redirect");
+
+    private ConnectionError() {
+      //No instances
+    }
+}
+

http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/39fc8b9e/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/LinkError.java
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/LinkError.java b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/LinkError.java
new file mode 100644
index 0000000..7f919bd
--- /dev/null
+++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/LinkError.java
@@ -0,0 +1,42 @@
+/*
+ * 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.test.testpeer.basictypes;
+
+
+import org.apache.qpid.proton.amqp.Symbol;
+
+
+/**
+ * Generated by generate-types.xsl, which resides in this package.
+ */
+public class LinkError {
+
+    public static final Symbol DETACH_FORCED = Symbol.valueOf("amqp:link:detach-forced");
+    public static final Symbol TRANSFER_LIMIT_EXCEEDED = Symbol.valueOf("amqp:link:transfer-limit-exceeded");
+    public static final Symbol MESSAGE_SIZE_EXCEEDED = Symbol.valueOf("amqp:link:message-size-exceeded");
+    public static final Symbol REDIRECT = Symbol.valueOf("amqp:link:redirect");
+    public static final Symbol STOLEN = Symbol.valueOf("amqp:link:stolen");
+
+    private LinkError() {
+      //No instances
+    }
+}
+

http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/39fc8b9e/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/SessionError.java
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/SessionError.java b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/SessionError.java
new file mode 100644
index 0000000..66049af
--- /dev/null
+++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/SessionError.java
@@ -0,0 +1,41 @@
+/*
+ * 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.test.testpeer.basictypes;
+
+
+import org.apache.qpid.proton.amqp.Symbol;
+
+
+/**
+ * Generated by generate-types.xsl, which resides in this package.
+ */
+public class SessionError {
+
+    public static final Symbol WINDOW_VIOLATION = Symbol.valueOf("amqp:session:window-violation");
+    public static final Symbol ERRANT_LINK = Symbol.valueOf("amqp:session:errant-link");
+    public static final Symbol HANDLE_IN_USE = Symbol.valueOf("amqp:session:handle-in-use");
+    public static final Symbol UNATTACHED_HANDLE = Symbol.valueOf("amqp:session:unattached-handle");
+
+    private SessionError() {
+      //No instances
+    }
+}
+

http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/39fc8b9e/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/generate-types.xsl
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/generate-types.xsl b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/generate-types.xsl
index 4569714..b4361bd 100644
--- a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/generate-types.xsl
+++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/generate-types.xsl
@@ -30,7 +30,7 @@
 </xsl:variable>
 
     <xsl:for-each select="descendant-or-self::node()[name()='type']">
-        <xsl:if test="@name = 'terminus-durability' or @name = 'terminus-expiry-policy' or @name = 'std-dist-mode' or @name = 'txn-capability' or @name = 'transaction-error'">
+        <xsl:if test="@name = 'terminus-durability' or @name = 'terminus-expiry-policy' or @name = 'std-dist-mode' or @name = 'txn-capability' or @provides = 'error-condition'">
           <xsl:variable name="classname"><xsl:call-template name="dashToCamel"><xsl:with-param name="input" select="@name"/></xsl:call-template></xsl:variable>
           <xsl:call-template name="typeClass">
               <xsl:with-param name="license" select="$license"/>


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