Class UnhandledMessageException
The exception that is thrown when some published messages aren't handled by any registered subscriber.
Implements
Inherited Members
Namespace: Silverback.Messaging.Publishing
Assembly: Silverback.Core.dll
Syntax
[Serializable]
public class UnhandledMessageException : SilverbackException, ISerializable
Constructors
| Improve this doc View sourceUnhandledMessageException()
Initializes a new instance of the UnhandledMessageException class.
Declaration
public UnhandledMessageException()
UnhandledMessageException(Object)
Initializes a new instance of the UnhandledMessageException class with the specified message.
Declaration
public UnhandledMessageException(object unhandledMessage)
Parameters
Type | Name | Description |
---|---|---|
System.Object | unhandledMessage | The message that wasn't handled. |
UnhandledMessageException(SerializationInfo, StreamingContext)
Initializes a new instance of the UnhandledMessageException class with the serialized data.
Declaration
protected UnhandledMessageException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | The System.Runtime.Serialization.SerializationInfo that holds the serialized object data about the exception being thrown. |
System.Runtime.Serialization.StreamingContext | context | The System.Runtime.Serialization.StreamingContext that contains contextual information about the source or destination. |
UnhandledMessageException(String)
Initializes a new instance of the UnhandledMessageException class with the specified message.
Declaration
public UnhandledMessageException(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The exception message. |
UnhandledMessageException(String, Exception)
Initializes a new instance of the UnhandledMessageException class with the specified message and inner exception.
Declaration
public UnhandledMessageException(string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The exception message. |
System.Exception | innerException | The inner exception. |
Properties
| Improve this doc View sourceUnhandledMessage
Gets the message that wasn't handled.
Declaration
public object UnhandledMessage { get; }
Property Value
Type | Description |
---|---|
System.Object |