Class ValidationError
An error which represents a validation failure on some object.
public sealed class ValidationError : Error
- Inheritance
-
ValidationError
- Inherited Members
- Extension Methods
Constructors
ValidationError(string, object?)
An error which represents a validation failure on some object.
public ValidationError(string message, object? source)
Parameters
messagestringA message describing the validation.
sourceobjectThe optional object which failed validation.
Properties
Message
The message used to display the error.
public override string Message { get; }
Property Value
- string
- An error which represents a validation failure on some object.
Source
The optional object which failed validation.
public object? Source { get; }
Property Value
- object
- An error which represents a validation failure on some object.