Constructs an error with extra event context attached to it in the same way that throwWithExtraContext attaches data.
The following examples are equivalent:
Throw new ExtraContextError('my error', {stuff: 'hi'}); Copy
Throw new ExtraContextError('my error', {stuff: 'hi'});
Const myError = new Error('my error'); throwWithExtraContext(myError, {stuff: 'hi'}); Copy
Const myError = new Error('my error'); throwWithExtraContext(myError, {stuff: 'hi'});
Readonly
Constructs an error with extra event context attached to it in the same way that throwWithExtraContext attaches data.
The following examples are equivalent:
Example
Example