Join Slack
Is there any way to capture a throwable’s stacktrace in common code?
# multiplatform
s
saket
08/30/2020, 4:56 AM
Is there any way to capture a throwable’s stacktrace in common code?
r
russhwolf
08/30/2020, 1:26 PM
This was added to the common stdlib in 1.4
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/stack-trace-to-string.html
Prior to that there were different APIs in JVM and Native that you could expect/actual around
s
saket
09/01/2020, 6:46 AM
ooh this is handy, thank you!
2
Views
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by