Class SubscribedMethodInvocationException
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.
Implements
Inherited Members
Namespace: Silverback.Messaging.Subscribers
Assembly: Silverback.Core.dll
Syntax
[Serializable]
public class SubscribedMethodInvocationException : SilverbackException, ISerializable
Constructors
| Improve this doc View sourceSubscribedMethodInvocationException()
Initializes a new instance of the SubscribedMethodInvocationException class.
Declaration
public SubscribedMethodInvocationException()
SubscribedMethodInvocationException(MethodInfo, string)
Initializes a new instance of the SubscribedMethodInvocationException class with the specified message and related to the specified MethodInfo.
Declaration
public SubscribedMethodInvocationException(MethodInfo methodInfo, string message)
Parameters
Type | Name | Description |
---|---|---|
MethodInfo | methodInfo | The MethodInfo of the related subscribed method. |
string | message | The exception message. |
SubscribedMethodInvocationException(SerializationInfo, StreamingContext)
Initializes a new instance of the SubscribedMethodInvocationException class with the serialized data.
Declaration
protected SubscribedMethodInvocationException(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. |
SubscribedMethodInvocationException(string)
Initializes a new instance of the SubscribedMethodInvocationException class with the specified message.
Declaration
public SubscribedMethodInvocationException(string message)
Parameters
Type | Name | Description |
---|---|---|
string | message | The exception message. |
SubscribedMethodInvocationException(string, Exception)
Initializes a new instance of the SubscribedMethodInvocationException class with the specified message and inner exception.
Declaration
public SubscribedMethodInvocationException(string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
string | message | The exception message. |
Exception | innerException | The inner exception. |
Properties
| Improve this doc View sourceMethodInfo
Gets the MethodInfo representing the subscribed method whose invocation thrown the exception.
Declaration
public MethodInfo? MethodInfo { get; }
Property Value
Type | Description |
---|---|
MethodInfo |