mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Add the NG01902 (Orphan field in signal forms) documentation page to the Error Encyclopedia and change the ORPHAN_FIELD_PROPERTY error code to -1902 so Angular's RuntimeError automatically appends a link to angular.dev/errors/NG01902 in the thrown error message.
33 lines
981 B
TypeScript
33 lines
981 B
TypeScript
/**
|
|
* @license
|
|
* Copyright Google LLC All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://angular.dev/license
|
|
*/
|
|
|
|
/**
|
|
* The list of error codes used in runtime code of the `forms` package.
|
|
* Reserved error code range: 1900-1999.
|
|
*/
|
|
export const enum RuntimeErrorCode {
|
|
// Signal Forms errors (1900-1999)
|
|
PATH_NOT_IN_FIELD_TREE = 1900,
|
|
PATH_RESOLUTION_FAILED = 1901,
|
|
ORPHAN_FIELD_PROPERTY = -1902,
|
|
ORPHAN_FIELD_ARRAY = 1903,
|
|
ORPHAN_FIELD_NOT_FOUND = 1904,
|
|
ROOT_FIELD_NO_PARENT = 1905,
|
|
PARENT_NOT_ARRAY = 1906,
|
|
ABSTRACT_CONTROL_IN_FORM = 1907,
|
|
PATH_OUTSIDE_SCHEMA = 1908,
|
|
UNKNOWN_BUILDER_TYPE = 1909,
|
|
UNKNOWN_STATUS = 1910,
|
|
COMPAT_NO_CHILDREN = 1911,
|
|
MANAGED_METADATA_LAZY_CREATION = 1912,
|
|
BINDING_ALREADY_REGISTERED = 1913,
|
|
INVALID_FIELD_DIRECTIVE_HOST = 1914,
|
|
MISSING_SUBMIT_ACTION = 1915,
|
|
RENDERED_HIDDEN_FIELD = 1916,
|
|
UNSUPPORTED_FEATURE = 1920,
|
|
}
|