## Uses of Class
java.lang.StackTraceElement

- Packages that use StackTraceElement
  Package | Description
  --- | ---
  java.lang |

- - ### Uses of StackTraceElement in java.lang

    Methods in java.lang that return StackTraceElement
    Modifier and Type | Method and Description
    --- | ---
    `StackTraceElement[]` | Throwable.`getStackTrace()` Provides programmatic access to the stack trace information printed by `Throwable.printStackTrace()`.
    `StackTraceElement[]` | Thread.`getStackTrace()` Returns an array of stack trace elements representing the stack dump of this thread.

    Methods in java.lang with parameters of type StackTraceElement
    Modifier and Type | Method and Description
    --- | ---
    `void` | Throwable.`setStackTrace(StackTraceElement[] stackTrace)` Sets the stack trace elements that will be returned by `Throwable.getStackTrace()` and printed by `Throwable.printStackTrace()` and related methods.

Copyright © 2025 API Design. All Rights Reserved.