diff --git a/src/Ardalis.Result/ValidationError.cs b/src/Ardalis.Result/ValidationError.cs index 4e37919..b6ce9c5 100644 --- a/src/Ardalis.Result/ValidationError.cs +++ b/src/Ardalis.Result/ValidationError.cs @@ -8,6 +8,12 @@ public ValidationError() public ValidationError(string errorMessage) => ErrorMessage = errorMessage; + public ValidationError(string identifier, string errorMessage) + { + Identifier = identifier; + ErrorMessage = errorMessage; + } + public ValidationError(string identifier, string errorMessage, string errorCode, ValidationSeverity severity) { Identifier = identifier;