• Overview
@angular/forms/signals

CustomValidationError

Class

A custom error that may contain additional properties

API

    
      class CustomValidationError extends ValidationError {}
    
    

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

Jump to details