Class representing a stack trace for debugging purposes.
Creates a StackTrace instance by capturing and filtering the current stack trace.
stackMessage
An optional stack trace to use instead of capturing a new one.
Default is null.
This flag can be used for type testing.
Default is true.
The stack trace.
Returns the full error message including the stack trace.
message
The error message.
Returns: The full error message with stack trace.
Returns a formatted location string of the top stack frame.
Returns: The formatted stack trace message.