public class StackTrace extends Throwable
This class is not designed as an Error or an Exception and is not intended to be thrown or caught.
| Constructor and Description |
|---|
StackTrace()
Constructs a new StackTrace with a default message "stack trace".
|
StackTrace(String message)
Constructs a new StackTrace with the specified message.
|
StackTrace(String message,
Throwable cause)
Constructs a new StackTrace with the specified message and cause.
|
| Modifier and Type | Method and Description |
|---|---|
static @Nullable StackTrace |
forThread(Thread t)
Returns a StackTrace object for the specified thread.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic StackTrace()
public StackTrace(String message)
message - the detail message.@Nullable public static @Nullable StackTrace forThread(Thread t)
t - the thread for which to obtain the stack trace.null if the thread is null.Copyright © 2024. All rights reserved.