IModel.AddError method
Namespace: NextDesign.Core
Description
Adds error information for this model and returns the added error information.
argument
Name | Type | Description |
---|---|---|
fields | string | Field names that detected errors (separated by commas if there are multiple fields) If null or an empty string is specified, error information is added without error detection fields. |
type | string | Error type - "Error" : Error - "Warning" : Warning - "Information" : Information - "Summary" : Summary |
title | string | Title You can specify any string, including null and an empty string. |
message | string | Message Can be any string including null and empty string. |
Return value
Exceptions
Name | Exception Class | Description |
---|---|---|
Invalid argument | ExtensionArgumentException | When a character string outside the range is specified for type |
Annotations
Error information registered by specifying "Summary" in the argument "type" will not be included in the stacking of items such as navigators.