Table of Contents

Class SubscribedMethodInvocationException

Namespace
Silverback.Messaging.Subscribers
Assembly
Silverback.Core.dll

The exception that is thrown when a subscribed method cannot be invoked. This usually happens because no value can be resolved for one or more arguments.

[ExcludeFromCodeCoverage]
public class SubscribedMethodInvocationException : SilverbackException, ISerializable
Inheritance
SubscribedMethodInvocationException
Implements
Inherited Members

Constructors

SubscribedMethodInvocationException()

Initializes a new instance of the SubscribedMethodInvocationException class.

public SubscribedMethodInvocationException()

SubscribedMethodInvocationException(MethodInfo?, string)

Initializes a new instance of the SubscribedMethodInvocationException class with the specified message and related to the specified MethodInfo.

public SubscribedMethodInvocationException(MethodInfo? methodInfo, string message)

Parameters

methodInfo MethodInfo

The MethodInfo of the related subscribed method.

message string

The exception message.

SubscribedMethodInvocationException(string)

Initializes a new instance of the SubscribedMethodInvocationException class with the specified message.

public SubscribedMethodInvocationException(string message)

Parameters

message string

The exception message.

SubscribedMethodInvocationException(string, Exception)

Initializes a new instance of the SubscribedMethodInvocationException class with the specified message and inner exception.

public SubscribedMethodInvocationException(string message, Exception innerException)

Parameters

message string

The exception message.

innerException Exception

The inner exception.

Properties

MethodInfo

Gets the MethodInfo representing the subscribed method whose invocation thrown the exception.

public MethodInfo? MethodInfo { get; }

Property Value

MethodInfo