• Overview
@angular/forms/signals

CustomValidationError

Class

A custom error that may contain additional properties

API

    
      class CustomValidationError implements ValidationError {  constructor(options?: ValidationErrorOptions | undefined): CustomValidationError;  readonly kind: string;  readonly field: FieldTree<unknown>;  readonly message?: string | undefined;}
    
    

constructor

CustomValidationError
@paramoptionsValidationErrorOptions | undefined

kind

string

Identifies the kind of error.

field

FieldTree<unknown>

The field associated with this error.

message

string | undefined

Human readable error message.

Jump to details