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
methodInfoMethodInfoThe MethodInfo of the related subscribed method.
messagestringThe exception message.
SubscribedMethodInvocationException(string)
Initializes a new instance of the SubscribedMethodInvocationException class with the specified message.
public SubscribedMethodInvocationException(string message)
Parameters
messagestringThe 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
Properties
MethodInfo
Gets the MethodInfo representing the subscribed method whose invocation thrown the exception.
public MethodInfo? MethodInfo { get; }