# core/resolveerrorsource

module

<a id="functions">

## Functions

<a id="function-resolveErrorSources">

### `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.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-core/src/resolveerrorsource.ts#L24)

#### Parameters

* `context: unknown`

#### Returns

* `Array<Editor | Context>`

---

Full index of the CKEditor 5 API reference: [llms.txt](llms.txt)
