Table of Contents

Class MessageValidationError

Namespace
Excalibur.Dispatch.Middleware.Validation
Assembly
Excalibur.Dispatch.dll

Represents a validation error for a specific property or field.

public sealed class MessageValidationError
Inheritance
MessageValidationError
Inherited Members
Extension Methods

Remarks

Creates a new validation error.

Constructors

MessageValidationError(string, string)

Represents a validation error for a specific property or field.

public MessageValidationError(string propertyName, string errorMessage)

Parameters

propertyName string
errorMessage string

Remarks

Creates a new validation error.

Properties

ErrorMessage

Gets the validation error message.

public string ErrorMessage { get; }

Property Value

string

The validation error message.

PropertyName

Gets the name of the property that failed validation.

public string PropertyName { get; }

Property Value

string

The name of the property that failed validation.