toText

fun Throwable.toText(prefix: String = ""): String

Return this throwable as a text.

Receiver

Throwable to be printed to a string.

Return

The filtered (if filter is provided) Throwable as a string.

Parameters

prefix

Optional prefix to filter stack trace elements.