Skip to main content

IModel.AddError method

Namespace: NextDesign.Core

Description

Adds error information for this model and returns the added error information.

argument

NameTypeDescription
fieldsstringField 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.
typestringError type
- "Error" : Error
- "Warning" : Warning
- "Information" : Information
- "Summary" : Summary
titlestringTitle

You can specify any string, including null and an empty string.
messagestringMessage

Can be any string including null and empty string.

Return value

Exceptions

NameException ClassDescription
Invalid argumentExtensionArgumentExceptionWhen 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.