printStackTrace

Common
JVM
JS
Native
1.0
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 error output.

Note that the format of the output is not stable and may change in the future.

JVM
1.0
fun Throwable.printStackTrace(writer: PrintWriter)
(source)

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

JVM
1.0
fun Throwable.printStackTrace(stream: PrintStream)
(source)

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