Capítulo 775 de 859
Class representing a stack trace for debugging purposes.
Constructor
| Signature |
|---|
| `new StackTrace( stackMessage : Error |
Properties
| Property | Description |
|---|---|
.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
| Method | Description |
|---|---|
.getError( message : string ) : string | Returns the full error message including the stack trace. |
.getLocation() : string | Returns a formatted location string of the top stack frame. |