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 |
---|---|---|
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 |
---|---|---|
SerializationInfo | info | The SerializationInfo that holds the serialized object data about the exception being thrown. |
StreamingContext | context | The 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 |
---|---|---|
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 |
---|---|---|
string | message | The exception message. |
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 |
---|---|
object |