diff --git a/src/Spring/Spring.Messaging.Nms/Messaging/Nms/Connections/SynchedLocalTransactionFailedException.cs b/src/Spring/Spring.Messaging.Nms/Messaging/Nms/Connections/SynchedLocalTransactionFailedException.cs
index 730910fd..97b94f4f 100644
--- a/src/Spring/Spring.Messaging.Nms/Messaging/Nms/Connections/SynchedLocalTransactionFailedException.cs
+++ b/src/Spring/Spring.Messaging.Nms/Messaging/Nms/Connections/SynchedLocalTransactionFailedException.cs
@@ -19,6 +19,7 @@
#endregion
using System;
+using System.Runtime.Serialization;
using Apache.NMS;
namespace Spring.Messaging.Nms.Connections
@@ -33,6 +34,13 @@ namespace Spring.Messaging.Nms.Connections
{
#region Constructor (s) / Destructor
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public SynchedLocalTransactionFailedException()
+ {
+ }
+
///
/// Creates a new instance of the SynchedLocalTransactionFailedException class. with the specified message.
///
@@ -58,6 +66,16 @@ namespace Spring.Messaging.Nms.Connections
{
}
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// The SerializationInfo that holds the serialized object data about the exception being thrown.
+ /// The StreamingContext that contains contextual information about the source or destination.
+ protected SynchedLocalTransactionFailedException(SerializationInfo info, StreamingContext context)
+ : base(info, context)
+ {
+ }
+
#endregion
}
}
diff --git a/src/Spring/Spring.Messaging.Nms/Messaging/Nms/Listener/AbstractListenerContainer.cs b/src/Spring/Spring.Messaging.Nms/Messaging/Nms/Listener/AbstractListenerContainer.cs
index 88403688..f058a41a 100644
--- a/src/Spring/Spring.Messaging.Nms/Messaging/Nms/Listener/AbstractListenerContainer.cs
+++ b/src/Spring/Spring.Messaging.Nms/Messaging/Nms/Listener/AbstractListenerContainer.cs
@@ -19,6 +19,7 @@
#endregion
using System;
+using System.Runtime.Serialization;
using Apache.NMS;
using Common.Logging;
using Spring.Context;
@@ -532,14 +533,42 @@ namespace Spring.Messaging.Nms.Listener
/// shared Connection failed. This is indicating to invokers that they need
/// to establish the shared Connection themselves on first access.
///
+ [Serializable]
public class SharedConnectionNotInitializedException : NMSException
{
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public SharedConnectionNotInitializedException()
+ {
+ }
+
///
/// Initializes a new instance of the class.
///
/// The message.
public SharedConnectionNotInitializedException(string message) : base(message)
{
+ }
+
+ ///
+ /// Initializes a new instance of the class, with the specified message
+ /// and root cause exception
+ ///
+ /// The message.
+ /// The inner exception.
+ public SharedConnectionNotInitializedException(string message, Exception innerException)
+ : base(message, innerException)
+ {
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// The SerializationInfo that holds the serialized object data about the exception being thrown.
+ /// The StreamingContext that contains contextual information about the source or destination.
+ protected SharedConnectionNotInitializedException(SerializationInfo info, StreamingContext context) : base(info, context)
+ {
}
}
}
\ No newline at end of file
diff --git a/src/Spring/Spring.Messaging.Nms/Messaging/Nms/Listener/Adapter/ListenerExecutionFailedException.cs b/src/Spring/Spring.Messaging.Nms/Messaging/Nms/Listener/Adapter/ListenerExecutionFailedException.cs
index d114aea7..9e0b40da 100644
--- a/src/Spring/Spring.Messaging.Nms/Messaging/Nms/Listener/Adapter/ListenerExecutionFailedException.cs
+++ b/src/Spring/Spring.Messaging.Nms/Messaging/Nms/Listener/Adapter/ListenerExecutionFailedException.cs
@@ -19,6 +19,7 @@
#endregion
using System;
+using System.Runtime.Serialization;
using Apache.NMS;
namespace Spring.Messaging.Nms.Listener.Adapter
@@ -28,8 +29,15 @@ namespace Spring.Messaging.Nms.Listener.Adapter
///
/// Juergen Hoeller
/// Mark Pollack (.NET)
+ [Serializable]
public class ListenerExecutionFailedException : NMSException
{
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public ListenerExecutionFailedException()
+ {
+ }
///
/// Initializes a new instance of the class, with the specified message
@@ -49,5 +57,15 @@ namespace Spring.Messaging.Nms.Listener.Adapter
: base(message, innerException)
{
}
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// The SerializationInfo that holds the serialized object data about the exception being thrown.
+ /// The StreamingContext that contains contextual information about the source or destination.
+ protected ListenerExecutionFailedException(SerializationInfo info, StreamingContext context)
+ : base(info, context)
+ {
+ }
}
}
\ No newline at end of file
diff --git a/src/Spring/Spring.Messaging.Nms/Messaging/Nms/Listener/RecoveryTimeExceededException.cs b/src/Spring/Spring.Messaging.Nms/Messaging/Nms/Listener/RecoveryTimeExceededException.cs
index 627401a5..21b2a5a4 100644
--- a/src/Spring/Spring.Messaging.Nms/Messaging/Nms/Listener/RecoveryTimeExceededException.cs
+++ b/src/Spring/Spring.Messaging.Nms/Messaging/Nms/Listener/RecoveryTimeExceededException.cs
@@ -18,10 +18,14 @@
#endregion
+#region
+
using System;
using System.Runtime.Serialization;
using Apache.NMS;
+#endregion
+
namespace Spring.Messaging.Nms.Listener
{
///
@@ -31,11 +35,10 @@ namespace Spring.Messaging.Nms.Listener
[Serializable]
public class RecoveryTimeExceededException : NMSException
{
-
///
/// Initializes a new instance of the class.
///
- public RecoveryTimeExceededException(): base()
+ public RecoveryTimeExceededException()
{
}
@@ -59,7 +62,13 @@ namespace Spring.Messaging.Nms.Listener
{
}
- /* Note, can not add this exception since the signature is not present in the base class.
- protected RecoveryTimeExceededException(SerializationInfo info, StreamingContext context ) : base( info, context ) {} */
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// The SerializationInfo that holds the serialized object data about the exception being thrown.
+ /// The StreamingContext that contains contextual information about the source or destination.
+ protected RecoveryTimeExceededException(SerializationInfo info, StreamingContext context) : base(info, context)
+ {
+ }
}
}
\ No newline at end of file
diff --git a/src/Spring/Spring.Messaging.Nms/Messaging/Nms/Support/Converter/MessageConversionException.cs b/src/Spring/Spring.Messaging.Nms/Messaging/Nms/Support/Converter/MessageConversionException.cs
index 8c1f1fd9..aa9631e7 100644
--- a/src/Spring/Spring.Messaging.Nms/Messaging/Nms/Support/Converter/MessageConversionException.cs
+++ b/src/Spring/Spring.Messaging.Nms/Messaging/Nms/Support/Converter/MessageConversionException.cs
@@ -19,6 +19,7 @@
#endregion
using System;
+using System.Runtime.Serialization;
using Apache.NMS;
namespace Spring.Messaging.Nms.Support.Converter
@@ -27,10 +28,17 @@ namespace Spring.Messaging.Nms.Support.Converter
/// of an object to/from a Message fails.
///
/// Mark Pollack
+ [Serializable]
public class MessageConversionException : NMSException
{
#region Constructor (s) / Destructor
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public MessageConversionException()
+ {
+ }
///
/// Creates a new instance of the IMessageConverterException class. with the specified message.
@@ -58,6 +66,15 @@ namespace Spring.Messaging.Nms.Support.Converter
{
}
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// The SerializationInfo that holds the serialized object data about the exception being thrown.
+ /// The StreamingContext that contains contextual information about the source or destination.
+ protected MessageConversionException(SerializationInfo info, StreamingContext context) : base(info, context)
+ {
+ }
+
#endregion
}
}
diff --git a/test/Spring/Spring.Messaging.Nms.Tests/NmsExceptionTests.cs b/test/Spring/Spring.Messaging.Nms.Tests/NmsExceptionTests.cs
index 5d450efb..9491008b 100644
--- a/test/Spring/Spring.Messaging.Nms.Tests/NmsExceptionTests.cs
+++ b/test/Spring/Spring.Messaging.Nms.Tests/NmsExceptionTests.cs
@@ -33,7 +33,7 @@ namespace Spring
///
/// Rick Evans
[TestFixture]
- [Ignore("Spring inherits from NMS Exceptions which do not ")]
+ //[Ignore("Spring inherits from NMS Exceptions which do not ")]
public sealed class NmsExceptionTests : ExceptionsTest
{
[TestFixtureSetUp]