Sign up (with export icon)

core/resolveerrorsource

Api-module iconmodule

Functions

  • Chevron-right icon

    resolveErrorSources( context ) → Array<Editor | Context>
    internal

    Answers what an error came from, given the context it was thrown with.

    Returns every editor the error can be attributed to, or the contexts when no editor claims it. The list is empty when no answer can be given. That is not necessarily a bug: it also happens for a context that is null, omitted, or an object that shares nothing with any editor currently running.

    Parameters

    context: unknown

    Returns

    Array<Editor | Context>