Class: MobxKeystoneAggregateError
A mobx-keystone error that groups several failures that happened while delivering a single notification, such as multiple patch listeners or root store hooks throwing.
It is only used when more than one callback failed; a lone failure is rethrown as is.
Extends
Constructors
Constructor
new MobxKeystoneAggregateError(errors, msg): MobxKeystoneAggregateError;
Parameters
| Parameter | Type |
|---|---|
errors | readonly unknown[] |
msg | string |
Returns
MobxKeystoneAggregateError
Overrides
Properties
cause?
optional cause?: unknown;
Inherited from
errors
readonly errors: readonly unknown[];
The values thrown by the failing callbacks, in the order they were thrown.
message
message: string;
Inherited from
name
name: string;
Inherited from
stack?
optional stack?: string;
Inherited from
Methods
isError()
static isError(error): error is Error;
Indicates whether the argument provided is a built-in Error instance or not.
Parameters
| Parameter | Type |
|---|---|
error | unknown |
Returns
error is Error