Class HasValidationErrorsExtensions
Inheritance
System.Object
HasValidationErrorsExtensions
Assembly: Volo.Abp.Validation.dll
Syntax
public static class HasValidationErrorsExtensions : object
Methods
WithValidationError<TException>(TException, String, String[])
Declaration
public static TException WithValidationError<TException>(this TException exception, string errorMessage, params string[] memberNames)
where TException : IHasValidationErrors
Parameters
| Type |
Name |
Description |
| TException |
exception |
|
| System.String |
errorMessage |
|
| System.String[] |
memberNames |
|
Returns
| Type |
Description |
| TException |
|
Type Parameters
| Name |
Description |
| TException |
|
WithValidationError<TException>(TException, ValidationResult)
Declaration
public static TException WithValidationError<TException>(this TException exception, ValidationResult validationError)
where TException : IHasValidationErrors
Parameters
| Type |
Name |
Description |
| TException |
exception |
|
| ValidationResult |
validationError |
|
Returns
| Type |
Description |
| TException |
|
Type Parameters
| Name |
Description |
| TException |
|