Skip to main content
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs

A stack trace (also called stack backtrace or stack traceback) is a report of the active stack frames at a certain point in time during the execution of a program. When a program is run, memory is often dynamically allocated in two places; the stack and the heap.

Exception Class and Built-In Exceptions

Common Exception Methods

Name                 | Return Type   | Description
getStackTraceString  | String        | Returns the stack trace as a string.