Determining Current Call Stack (For Diagnostic Purposes) April 15, 2023 by Tarik I think you can get the same thing with: StackTraceElement[] cause = Thread.currentThread().getStackTrace();