W3cubDocs

/Kotlin

printStackTrace

Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
fun Throwable.printStackTrace()
For Common

Prints the detailed description of this throwable to the standard output or standard error output.

For JVM

Prints the detailed description of this throwable to the standard error output.

For JS

Prints the detailed description of this throwable to console error output.

For Native

Prints the detailed description of this throwable to the standard output.

Platform and version requirements: JVM (1.0)
fun Throwable.printStackTrace(writer: PrintWriter)

Prints the detailed description of this throwable to the specified writer.

Platform and version requirements: JVM (1.0)
fun Throwable.printStackTrace(stream: PrintStream)

Prints the detailed description of this throwable to the specified stream.

© 2010–2020 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/print-stack-trace.html