Skip to content

Commit 62775a8

Browse files
author
baolongf@yahoo.com
committed
modify get-current-stack-trace-in-java
1 parent 1631914 commit 62775a8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

contents/get-current-stack-trace-in-java.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,9 @@
88
String fullStackTrace = org.apache.commons.lang.exception.ExceptionUtils.getFullStackTrace(e)
99
```
1010

11+
````java
12+
Thread.currentThread().getStackTrace();
13+
````
14+
1115
stackoverflow原址:
1216
http://stackoverflow.com/questions/1069066/how-can-i-get-the-current-stack-trace

0 commit comments

Comments
 (0)