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', {context: {stuff: 'hi'}}); Copy
Throw new ExtraContextError('my error', {context: {stuff: 'hi'}});
Const myError = new Error('my error'); throwWithExtraContext(myError, {context: {stuff:'hi'}}); Copy
Const myError = new Error('my error'); throwWithExtraContext(myError, {context: {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