8.7 released—WinterCG Compliance Part 1
Learn more
SourceError
Represents a scope error providing addiot

Summary

Constructors

constructor

Constructors

constructor

new SourceError(child: Error, source: Source, message?: string): SourceError
Creates a new SourceError by child error, source and optional message.
Parameter Default Description
child
Error

The child error to extend.

source

The source where the error occured.

message
string

Additonal message to prepend along the source location and the child error's message.

Returns SourceError