I think you can get the same thing with:
StackTraceElement[] cause = Thread.currentThread().getStackTrace();
More Related Contents:
- What is a stack trace, and how can I use it to debug my application errors?
- Official reasons for “Software caused connection abort: socket write error”
- How do I find the caller of a method using stacktrace or reflection?
- How can I convert a stack trace to a string?
- How to read and understand the java stack trace? [duplicate]
- Why is exception.printStackTrace() considered bad practice?
- (Unknown Source) in Exception stack trace
- Java / Android – How to print out a full stack trace?
- How to get arguments passed to method that called this method?
- How to send a stacktrace to log4j?
- NullPointerException stack trace not available without debug agent
- Print full call stack on printStackTrace()?
- How do I stop stacktraces truncating in logs
- Exception without stack trace in Java
- Log4j formatting: Is it possible to truncate stacktraces?
- How to get a complete stack trace of a running java program that is taking 100% cpu?
- how to access single element in array for example how can i get mark age
- What are enums and why are they useful?
- Difference between spring @Controller and @RestController annotation
- How to send data from DialogFragment to a Fragment?
- How to cast List to List
- Understanding Scanner’s nextLine(), next(), and nextInt() methods
- Spring – Injecting a dependency into a ServletContextListener
- Is the ternary operator faster than an “if” condition in Java [duplicate]
- Why does this java 8 stream operation evaluate to Object instead of List or just List?
- Change database schema during runtime based on logged in user
- Why is Java’s division broken?
- Catching nullpointerexception in Java [closed]
- Java: is there no AtomicFloat or AtomicDouble?
- how to increase java heap memory permanently?