Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ValidationErrors.AddError Method

Adds the supplied message to this instance's collection of errors.

[Visual Basic]
Public NotOverridable Sub AddError( _
   ByVal provider As String, _
   ByVal message As ErrorMessage _
) _
    Implements IValidationErrors.AddError
[C#]
public void AddError(
   string provider,
   ErrorMessage message
);

Parameters

provider
The provider that should be used for message grouping; can't be .
message
The error message to add.

Implements

IValidationErrors.AddError

Exceptions

Exception Type Condition
ArgumentNullException If the supplied provider or message is a null reference (Nothing in Visual Basic).

See Also

ValidationErrors Class | Spring.Validation Namespace