You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by jg...@apache.org on 2009/02/27 18:50:05 UTC

svn commit: r748617 - in /activemq/activemq-dotnet/Apache.NMS/trunk: ./ src/main/csharp/

Author: jgomes
Date: Fri Feb 27 17:50:05 2009
New Revision: 748617

URL: http://svn.apache.org/viewvc?rev=748617&view=rev
Log:
Applied changes based upon patch submitted by Yev Bronshteyn.  Renamed the exceptions to all begin with NMSxxx to be consistent with NMS programming API.  Standardized all of the inherited exceptions to match the basic exception class constructor pattern.
Fixes [AMQNET-93]. (See https://issues.apache.org/activemq/browse/AMQNET-93)

Added:
    activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/NMSIllegalStateException.cs
    activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/NMSInvalidClientIDException.cs
    activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/NMSInvalidSelectorException.cs
    activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/NMSMessageEOFException.cs
    activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/NMSMessageFormatException.cs
    activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/NMSMessageNotReadableException.cs
    activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/NMSMessageNotWriteableException.cs
    activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/NMSResourceAllocationException.cs
    activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/NMSTransactionInProgressException.cs
    activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/NMSTransactionRolledBackException.cs
Modified:
    activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/NMSConnectionException.cs
    activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/NMSException.cs
    activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/NMSSecurityException.cs
    activemq/activemq-dotnet/Apache.NMS/trunk/vs2008-nms.csproj

Modified: activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/NMSConnectionException.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/NMSConnectionException.cs?rev=748617&r1=748616&r2=748617&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/NMSConnectionException.cs (original)
+++ activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/NMSConnectionException.cs Fri Feb 27 17:50:05 2009
@@ -23,7 +23,13 @@
 	/// </summary>
 	public class NMSConnectionException : NMSException
 	{
-		public NMSConnectionException(string message) : base(message)
+		public NMSConnectionException(string message)
+			: base(message)
+		{
+		}
+
+		public NMSConnectionException(string message, string errorCode)
+			: base(message, errorCode)
 		{
 		}
 
@@ -31,6 +37,11 @@
 			: base(message, innerException)
 		{
 		}
+
+		public NMSConnectionException(string message, string errorCode, Exception innerException)
+			: base(message, errorCode, innerException)
+		{
+		}
 	}
 }
 

Modified: activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/NMSException.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/NMSException.cs?rev=748617&r1=748616&r2=748617&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/NMSException.cs (original)
+++ activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/NMSException.cs Fri Feb 27 17:50:05 2009
@@ -14,6 +14,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
+
 using System;
 
 namespace Apache.NMS
@@ -21,16 +22,39 @@
 	/// <summary>
 	/// Represents a NMS exception
 	/// </summary>
+	[Serializable]
 	public class NMSException : System.Exception
 	{
+		protected string exceptionErrorCode;
+
 		public NMSException(string message)
 			: base(message)
 		{
 		}
 
+		public NMSException(string message, string errorCode)
+			: this(message)
+		{
+			exceptionErrorCode = errorCode;
+		}
+
 		public NMSException(string message, Exception innerException)
 			: base(message, innerException)
 		{
 		}
+
+		public NMSException(string message, string errorCode, Exception innerException)
+			: base(message, innerException)
+		{
+			exceptionErrorCode = errorCode;
+		}
+
+		/// <summary>
+		/// Returns the error code for the exception, if one has been provided.
+		/// </summary>
+		public string ErrorCode
+		{
+			get { return exceptionErrorCode; }
+		}
 	}
 }

Added: activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/NMSIllegalStateException.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/NMSIllegalStateException.cs?rev=748617&view=auto
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/NMSIllegalStateException.cs (added)
+++ activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/NMSIllegalStateException.cs Fri Feb 27 17:50:05 2009
@@ -0,0 +1,47 @@
+/*
+* 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.
+*/
+
+using System;
+
+namespace Apache.NMS
+{
+	[Serializable]
+	public class NMSIllegalStateException : NMSException
+	{
+		public NMSIllegalStateException(string message)
+			: base(message)
+		{
+		}
+
+		public NMSIllegalStateException(string message, string errorCode)
+			: base(message, errorCode)
+		{
+		}
+
+		public NMSIllegalStateException(string message, Exception innerException)
+			: base(message, innerException)
+		{
+		}
+
+		public NMSIllegalStateException(string message, string errorCode, Exception innerException)
+			: base(message, errorCode, innerException)
+		{
+		}
+	}
+}

Added: activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/NMSInvalidClientIDException.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/NMSInvalidClientIDException.cs?rev=748617&view=auto
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/NMSInvalidClientIDException.cs (added)
+++ activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/NMSInvalidClientIDException.cs Fri Feb 27 17:50:05 2009
@@ -0,0 +1,47 @@
+/*
+* 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.
+*/
+
+using System;
+
+namespace Apache.NMS
+{
+	[Serializable]
+	public class NMSInvalidClientIDException : NMSException
+	{
+		public NMSInvalidClientIDException(string message)
+			: base(message)
+		{
+		}
+
+		public NMSInvalidClientIDException(string message, string errorCode)
+			: base(message, errorCode)
+		{
+		}
+
+		public NMSInvalidClientIDException(string message, Exception innerException)
+			: base(message, innerException)
+		{
+		}
+
+		public NMSInvalidClientIDException(string message, string errorCode, Exception innerException)
+			: base(message, errorCode, innerException)
+		{
+		}
+	}
+}

Added: activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/NMSInvalidSelectorException.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/NMSInvalidSelectorException.cs?rev=748617&view=auto
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/NMSInvalidSelectorException.cs (added)
+++ activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/NMSInvalidSelectorException.cs Fri Feb 27 17:50:05 2009
@@ -0,0 +1,47 @@
+/*
+* 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.
+*/
+
+using System;
+
+namespace Apache.NMS
+{
+	[Serializable]
+	public class NMSInvalidSelectorException : NMSException
+	{
+		public NMSInvalidSelectorException(string message)
+			: base(message)
+		{
+		}
+
+		public NMSInvalidSelectorException(string message, string errorCode)
+			: base(message, errorCode)
+		{
+		}
+
+		public NMSInvalidSelectorException(string message, Exception innerException)
+			: base(message, innerException)
+		{
+		}
+
+		public NMSInvalidSelectorException(string message, string errorCode, Exception innerException)
+			: base(message, errorCode, innerException)
+		{
+		}
+	}
+}

Added: activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/NMSMessageEOFException.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/NMSMessageEOFException.cs?rev=748617&view=auto
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/NMSMessageEOFException.cs (added)
+++ activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/NMSMessageEOFException.cs Fri Feb 27 17:50:05 2009
@@ -0,0 +1,47 @@
+/*
+* 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.
+*/
+
+using System;
+
+namespace Apache.NMS
+{
+	[Serializable]
+	public class NMSMessageEOFException : NMSException
+	{
+		public NMSMessageEOFException(string message)
+			: base(message)
+		{
+		}
+
+		public NMSMessageEOFException(string message, string errorCode)
+			: base(message, errorCode)
+		{
+		}
+
+		public NMSMessageEOFException(string message, Exception innerException)
+			: base(message, innerException)
+		{
+		}
+
+		public NMSMessageEOFException(string message, string errorCode, Exception innerException)
+			: base(message, errorCode, innerException)
+		{
+		}
+	}
+}

Added: activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/NMSMessageFormatException.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/NMSMessageFormatException.cs?rev=748617&view=auto
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/NMSMessageFormatException.cs (added)
+++ activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/NMSMessageFormatException.cs Fri Feb 27 17:50:05 2009
@@ -0,0 +1,47 @@
+/*
+* 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.
+*/
+
+using System;
+
+namespace Apache.NMS
+{
+	[Serializable]
+	public class NMSMessageFormatException : NMSException
+	{
+		public NMSMessageFormatException(string message)
+			: base(message)
+		{
+		}
+
+		public NMSMessageFormatException(string message, string errorCode)
+			: base(message, errorCode)
+		{
+		}
+
+		public NMSMessageFormatException(string message, Exception innerException)
+			: base(message, innerException)
+		{
+		}
+
+		public NMSMessageFormatException(string message, string errorCode, Exception innerException)
+			: base(message, errorCode, innerException)
+		{
+		}
+	}
+}

Added: activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/NMSMessageNotReadableException.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/NMSMessageNotReadableException.cs?rev=748617&view=auto
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/NMSMessageNotReadableException.cs (added)
+++ activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/NMSMessageNotReadableException.cs Fri Feb 27 17:50:05 2009
@@ -0,0 +1,47 @@
+/*
+* 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.
+*/
+
+using System;
+
+namespace Apache.NMS
+{
+	[Serializable]
+	public class NMSMessageNotReadableException : NMSException
+	{
+		public NMSMessageNotReadableException(string message)
+			: base(message)
+		{
+		}
+
+		public NMSMessageNotReadableException(string message, string errorCode)
+			: base(message, errorCode)
+		{
+		}
+
+		public NMSMessageNotReadableException(string message, Exception innerException)
+			: base(message, innerException)
+		{
+		}
+
+		public NMSMessageNotReadableException(string message, string errorCode, Exception innerException)
+			: base(message, errorCode, innerException)
+		{
+		}
+	}
+}

Added: activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/NMSMessageNotWriteableException.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/NMSMessageNotWriteableException.cs?rev=748617&view=auto
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/NMSMessageNotWriteableException.cs (added)
+++ activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/NMSMessageNotWriteableException.cs Fri Feb 27 17:50:05 2009
@@ -0,0 +1,47 @@
+/*
+* 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.
+*/
+
+using System;
+
+namespace Apache.NMS
+{
+	[Serializable]
+	public class NMSMessageNotWriteableException : NMSException
+	{
+		public NMSMessageNotWriteableException(string message)
+			: base(message)
+		{
+		}
+
+		public NMSMessageNotWriteableException(string message, string errorCode)
+			: base(message, errorCode)
+		{
+		}
+
+		public NMSMessageNotWriteableException(string message, Exception innerException)
+			: base(message, innerException)
+		{
+		}
+
+		public NMSMessageNotWriteableException(string message, string errorCode, Exception innerException)
+			: base(message, errorCode, innerException)
+		{
+		}
+	}
+}

Added: activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/NMSResourceAllocationException.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/NMSResourceAllocationException.cs?rev=748617&view=auto
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/NMSResourceAllocationException.cs (added)
+++ activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/NMSResourceAllocationException.cs Fri Feb 27 17:50:05 2009
@@ -0,0 +1,47 @@
+/*
+* 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.
+*/
+
+using System;
+
+namespace Apache.NMS
+{
+	[Serializable]
+	public class NMSResourceAllocationException : NMSException
+	{
+		public NMSResourceAllocationException(string message)
+			: base(message)
+		{
+		}
+
+		public NMSResourceAllocationException(string message, string errorCode)
+			: base(message, errorCode)
+		{
+		}
+
+		public NMSResourceAllocationException(string message, Exception innerException)
+			: base(message, innerException)
+		{
+		}
+
+		public NMSResourceAllocationException(string message, string errorCode, Exception innerException)
+			: base(message, errorCode, innerException)
+		{
+		}
+	}
+}

Modified: activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/NMSSecurityException.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/NMSSecurityException.cs?rev=748617&r1=748616&r2=748617&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/NMSSecurityException.cs (original)
+++ activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/NMSSecurityException.cs Fri Feb 27 17:50:05 2009
@@ -14,10 +14,13 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
+
+using System;
+
 namespace Apache.NMS
 {
 	/// <summary>
-	/// Represents a connection failure.
+	/// Represents a security failure.
 	/// </summary>
 	public class NMSSecurityException : NMSException
 	{
@@ -25,6 +28,21 @@
 			: base(message)
 		{
 		}
+
+		public NMSSecurityException(string message, string errorCode)
+			: base(message, errorCode)
+		{
+		}
+
+		public NMSSecurityException(string message, Exception innerException)
+			: base(message, innerException)
+		{
+		}
+
+		public NMSSecurityException(string message, string errorCode, Exception innerException)
+			: base(message, errorCode, innerException)
+		{
+		}
 	}
 }
 

Added: activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/NMSTransactionInProgressException.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/NMSTransactionInProgressException.cs?rev=748617&view=auto
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/NMSTransactionInProgressException.cs (added)
+++ activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/NMSTransactionInProgressException.cs Fri Feb 27 17:50:05 2009
@@ -0,0 +1,47 @@
+/*
+* 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.
+*/
+
+using System;
+
+namespace Apache.NMS
+{
+	[Serializable]
+	public class NMSTransactionInProgressException : NMSException
+	{
+		public NMSTransactionInProgressException(string message)
+			: base(message)
+		{
+		}
+
+		public NMSTransactionInProgressException(string message, string errorCode)
+			: base(message, errorCode)
+		{
+		}
+
+		public NMSTransactionInProgressException(string message, Exception innerException)
+			: base(message, innerException)
+		{
+		}
+
+		public NMSTransactionInProgressException(string message, string errorCode, Exception innerException)
+			: base(message, errorCode, innerException)
+		{
+		}
+	}
+}

Added: activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/NMSTransactionRolledBackException.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/NMSTransactionRolledBackException.cs?rev=748617&view=auto
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/NMSTransactionRolledBackException.cs (added)
+++ activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/NMSTransactionRolledBackException.cs Fri Feb 27 17:50:05 2009
@@ -0,0 +1,47 @@
+/*
+* 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.
+*/
+
+using System;
+
+namespace Apache.NMS
+{
+	[Serializable]
+	public class NMSTransactionRolledBackException : NMSException
+	{
+		public NMSTransactionRolledBackException(string message)
+			: base(message)
+		{
+		}
+
+		public NMSTransactionRolledBackException(string message, string errorCode)
+			: base(message, errorCode)
+		{
+		}
+
+		public NMSTransactionRolledBackException(string message, Exception innerException)
+			: base(message, innerException)
+		{
+		}
+
+		public NMSTransactionRolledBackException(string message, string errorCode, Exception innerException)
+			: base(message, errorCode, innerException)
+		{
+		}
+	}
+}

Modified: activemq/activemq-dotnet/Apache.NMS/trunk/vs2008-nms.csproj
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS/trunk/vs2008-nms.csproj?rev=748617&r1=748616&r2=748617&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS/trunk/vs2008-nms.csproj (original)
+++ activemq/activemq-dotnet/Apache.NMS/trunk/vs2008-nms.csproj Fri Feb 27 17:50:05 2009
@@ -51,11 +51,14 @@
     <Compile Include="src\main\csharp\IConnection.cs" />
     <Compile Include="src\main\csharp\IConnectionFactory.cs" />
     <Compile Include="src\main\csharp\IDestination.cs" />
+    <Compile Include="src\main\csharp\NMSIllegalStateException.cs" />
     <Compile Include="src\main\csharp\IMapMessage.cs" />
     <Compile Include="src\main\csharp\IMessage.cs" />
     <Compile Include="src\main\csharp\IMessageConsumer.cs" />
     <Compile Include="src\main\csharp\IMessageProducer.cs" />
+    <Compile Include="src\main\csharp\NMSInvalidClientIDException.cs" />
     <Compile Include="src\main\csharp\InvalidDestinationException.cs" />
+    <Compile Include="src\main\csharp\NMSInvalidSelectorException.cs" />
     <Compile Include="src\main\csharp\IObjectMessage.cs" />
     <Compile Include="src\main\csharp\IPrimitiveMap.cs" />
     <Compile Include="src\main\csharp\IQueue.cs" />
@@ -67,12 +70,19 @@
     <Compile Include="src\main\csharp\ITextMessage.cs" />
     <Compile Include="src\main\csharp\ITopic.cs" />
     <Compile Include="src\main\csharp\ITrace.cs" />
+    <Compile Include="src\main\csharp\NMSMessageEOFException.cs" />
+    <Compile Include="src\main\csharp\NMSMessageFormatException.cs" />
+    <Compile Include="src\main\csharp\NMSMessageNotReadableException.cs" />
+    <Compile Include="src\main\csharp\NMSMessageNotWriteableException.cs" />
     <Compile Include="src\main\csharp\NMSConnectionException.cs" />
     <Compile Include="src\main\csharp\NMSConstants.cs" />
     <Compile Include="src\main\csharp\NMSException.cs" />
     <Compile Include="src\main\csharp\NMSConnectionFactory.cs" />
     <Compile Include="src\main\csharp\NMSSecurityException.cs" />
+    <Compile Include="src\main\csharp\NMSResourceAllocationException.cs" />
     <Compile Include="src\main\csharp\Tracer.cs" />
+    <Compile Include="src\main\csharp\NMSTransactionInProgressException.cs" />
+    <Compile Include="src\main\csharp\NMSTransactionRolledBackException.cs" />
     <Compile Include="src\main\csharp\Util\Atomic.cs" />
     <Compile Include="src\main\csharp\Util\AtomicBoolean.cs" />
     <Compile Include="src\main\csharp\Util\AtomicReference.cs" />