NativeScript 9.1 Released → V8 14.9, Vite 8 HMR, built for rapid agentic visual iteration
Dig in

Defined in: utils/debug.d.ts:56

Represents a scope error providing addiot

Extends ​

Constructors ​

Constructor ​

ts
new SourceError(
   child: Error, 
   source: Source, 
   message?: string): SourceError;

Defined in: utils/debug.d.ts:63

Creates a new SourceError by child error, source and optional message.

Parameters ​

ParameterTypeDescription
childErrorThe child error to extend.
sourceSourceThe source where the error occured.
message?stringAdditonal message to prepend along the source location and the child error's message.

Returns ​

SourceError

Overrides ​

ScopeError.constructor

Previous
Source