Capítulo 775 de 859

Chapter 775: StackTrace

Core Idea

Class representing a stack trace for debugging purposes.

Key Concepts

  • isStackTrace : boolean (readonly): This flag can be used for type testing.
  • stack : Array.<{fn: string, file: string, line: number, column: number}>: The stack trace.

Reference Tables

Constructor

Signature
`new StackTrace( stackMessage : Error

Properties

PropertyDescription
.isStackTrace : boolean (readonly)This flag can be used for type testing.
.stack : Array.<{fn: string, file: string, line: number, column: number}>The stack trace.

Methods

MethodDescription
.getError( message : string ) : stringReturns the full error message including the stack trace.
.getLocation() : stringReturns a formatted location string of the top stack frame.

Key Takeaways

  1. Most relevant properties: isStackTrace, stack.
  2. Key methods: getError, getLocation.

Connects To