angular/goldens/public-api/core/errors.md
Paul Gschwendtner 1df95cd1c1 refactor(core): improve error message and add guide for required inputs (#53808)
Whenever a required input is accessed too early in a
directive/component, the signal input will throw an error.

This is necessary so that we can support required inputs
with intuitive typings that do not include `undefined` for
the short period of time where Angular is creating the component and
then assigning inputs later (Angular currently has no way of setting
inputs as part of the class creation when `new Dir()` happens)

PR Close #53808
2024-01-10 12:21:05 +00:00

4.4 KiB

API Report File for "angular-srcs"

Do not edit this file. It is a report generated by API Extractor.


// @public
export function formatRuntimeError<T extends number = RuntimeErrorCode>(code: T, message: null | false | string): string;

// @public
export class RuntimeError<T extends number = RuntimeErrorCode> extends Error {
    constructor(code: T, message: null | false | string);
    // (undocumented)
    code: T;
}

// @public
export const enum RuntimeErrorCode {
    // (undocumented)
    APPLICATION_REF_ALREADY_DESTROYED = 406,
    // (undocumented)
    ASSERTION_NOT_INSIDE_REACTIVE_CONTEXT = -602,
    // (undocumented)
    ASYNC_INITIALIZERS_STILL_RUNNING = 405,
    // (undocumented)
    BOOTSTRAP_COMPONENTS_NOT_FOUND = -403,
    // (undocumented)
    COMPONENT_ID_COLLISION = -912,
    // (undocumented)
    CYCLIC_DI_DEPENDENCY = -200,
    // (undocumented)
    DEFER_LOADING_FAILED = 750,
    // (undocumented)
    DUPLICATE_DIRECTIVE = 309,
    // (undocumented)
    EXPORT_NOT_FOUND = -301,
    // (undocumented)
    EXPRESSION_CHANGED_AFTER_CHECKED = -100,
    // (undocumented)
    HOST_DIRECTIVE_COMPONENT = 310,
    // (undocumented)
    HOST_DIRECTIVE_CONFLICTING_ALIAS = 312,
    // (undocumented)
    HOST_DIRECTIVE_NOT_STANDALONE = 308,
    // (undocumented)
    HOST_DIRECTIVE_UNDEFINED_BINDING = 311,
    // (undocumented)
    HOST_DIRECTIVE_UNRESOLVABLE = 307,
    // (undocumented)
    HYDRATION_MISSING_NODE = -502,
    // (undocumented)
    HYDRATION_MISSING_SIBLINGS = -501,
    // (undocumented)
    HYDRATION_NODE_MISMATCH = -500,
    // (undocumented)
    HYDRATION_STABLE_TIMEDOUT = -506,
    // (undocumented)
    IMAGE_PERFORMANCE_WARNING = -913,
    // (undocumented)
    IMPORT_PROVIDERS_FROM_STANDALONE = 800,
    // (undocumented)
    INFINITE_CHANGE_DETECTION = 103,
    // (undocumented)
    INJECTOR_ALREADY_DESTROYED = 205,
    // (undocumented)
    INVALID_DIFFER_INPUT = 900,
    // (undocumented)
    INVALID_EVENT_BINDING = 306,
    // (undocumented)
    INVALID_FACTORY_DEPENDENCY = 202,
    // (undocumented)
    INVALID_I18N_STRUCTURE = 700,
    // (undocumented)
    INVALID_INHERITANCE = 903,
    // (undocumented)
    INVALID_INJECTION_TOKEN = 204,
    // (undocumented)
    INVALID_MULTI_PROVIDER = -209,
    // (undocumented)
    INVALID_SKIP_HYDRATION_HOST = -504,
    // (undocumented)
    MISSING_DOCUMENT = 210,
    // (undocumented)
    MISSING_GENERATED_DEF = 906,
    // (undocumented)
    MISSING_HYDRATION_ANNOTATIONS = -505,
    // (undocumented)
    MISSING_INJECTION_CONTEXT = -203,
    // (undocumented)
    MISSING_INJECTION_TOKEN = 208,
    // (undocumented)
    MISSING_LOCALE_DATA = 701,
    // (undocumented)
    MISSING_REQUIRED_INJECTABLE_IN_BOOTSTRAP = 402,
    // (undocumented)
    MISSING_SSR_CONTENT_INTEGRITY_MARKER = -507,
    // (undocumented)
    MISSING_ZONEJS = 908,
    // (undocumented)
    MULTIPLE_COMPONENTS_MATCH = -300,
    // (undocumented)
    MULTIPLE_MATCHING_PIPES = 313,
    // (undocumented)
    MULTIPLE_PLATFORMS = 400,
    // (undocumented)
    NO_SUPPORTING_DIFFER_FACTORY = 901,
    // (undocumented)
    PIPE_NOT_FOUND = -302,
    // (undocumented)
    PLATFORM_ALREADY_DESTROYED = 404,
    // (undocumented)
    PLATFORM_NOT_FOUND = 401,
    // (undocumented)
    PROVIDER_IN_WRONG_CONTEXT = 207,
    // (undocumented)
    PROVIDER_NOT_FOUND = -201,
    // (undocumented)
    RECURSIVE_APPLICATION_REF_TICK = 101,
    // (undocumented)
    RENDERER_NOT_FOUND = 407,
    // (undocumented)
    REQUIRE_SYNC_WITHOUT_SYNC_EMIT = 601,
    // (undocumented)
    REQUIRED_INPUT_NO_VALUE = -950,
    // (undocumented)
    RUNTIME_DEPS_INVALID_IMPORTED_TYPE = 1000,
    // (undocumented)
    RUNTIME_DEPS_ORPHAN_COMPONENT = 1001,
    // (undocumented)
    SIGNAL_WRITE_FROM_ILLEGAL_CONTEXT = 600,
    // (undocumented)
    TEMPLATE_STRUCTURE_ERROR = 305,
    // (undocumented)
    TYPE_IS_NOT_STANDALONE = 907,
    // (undocumented)
    UNEXPECTED_ZONE_STATE = 909,
    // (undocumented)
    UNKNOWN_BINDING = 303,
    // (undocumented)
    UNKNOWN_ELEMENT = 304,
    // (undocumented)
    UNSAFE_IFRAME_ATTRS = -910,
    // (undocumented)
    UNSAFE_VALUE_IN_RESOURCE_URL = 904,
    // (undocumented)
    UNSAFE_VALUE_IN_SCRIPT = 905,
    // (undocumented)
    UNSUPPORTED_PROJECTION_DOM_NODES = -503,
    // (undocumented)
    VIEW_ALREADY_ATTACHED = 902,
    // (undocumented)
    VIEW_ALREADY_DESTROYED = 911
}

// (No @packageDocumentation comment for this package)