• Overview
@angular/forms/signals

ValidationError

Class

Common interface for all validation errors.

API

    
      abstract class ValidationError {}
    
    

constructor

ValidationError
@paramoptionsValidationErrorOptions | undefined

kind

string

Identifies the kind of error.

field

() => FieldState<unknown, string | number>

The field associated with this error.

message

string | undefined

Human readable error message.

[BRAND]

undefined

Brand the class to avoid Typescript structural matching

Description

Common interface for all validation errors.

Use the creation functions to create an instance (e.g. requiredError, minError, etc.).

Jump to details