Class MessageValidationException
The exception that is thrown when the message is not valid and the validation mode is ThrowException.
Implements
Inherited Members
Namespace: Silverback.Messaging.Validation
Assembly: Silverback.Integration.dll
Syntax
[Serializable]
public class MessageValidationException : SilverbackException, ISerializableConstructors
| Improve this doc View sourceMessageValidationException()
Initializes a new instance of the MessageValidationException class.
Declaration
public MessageValidationException()MessageValidationException(SerializationInfo, StreamingContext)
Initializes a new instance of the MessageValidationException class with the serialized data.
Declaration
protected MessageValidationException(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. | 
MessageValidationException(string)
Initializes a new instance of the MessageValidationException class with the specified message.
Declaration
public MessageValidationException(string message)Parameters
| Type | Name | Description | 
|---|---|---|
| string | message | The exception message. | 
MessageValidationException(string, Exception)
Initializes a new instance of the MessageValidationException class with the specified message and inner exception.
Declaration
public MessageValidationException(string message, Exception innerException)Parameters
| Type | Name | Description | 
|---|---|---|
| string | message | The exception message. | 
| Exception | innerException | The inner exception. |