W3cubDocs

/Angular

BaseNgValidationError

Internal version of NgValidationError, we create this separately so we can change its type on the exported version to a type union of the possible sub-classes.

API

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

constructor

BaseNgValidationError
@paramoptionsValidationErrorOptions | undefined

kind

string

Identifies the kind of error.

fieldTree

FieldTree<unknown>

The field associated with this error.

message

string | undefined

Human readable error message.

Super-powered by Google ©2010–2025.
Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.
https://angular.dev/api/forms/signals/BaseNgValidationError