StandardStackTracePrinter

StackTracePrinter that prints a standard form stack trace. This printer produces a result in a similar form to printStackTrace, but offers more customization options.

Author

Phillip Webb

Since

3.5.0

Functions

Link copied to clipboard
open fun printStackTrace(throwable: Throwable, out: Appendable)
Prints a stack trace for the given Throwable.
Link copied to clipboard
Return a String containing the printed stack trace for a given Throwable.
Link copied to clipboard
Return a StandardStackTracePrinter that prints the stack trace with the root exception first (the opposite of printStackTrace).
Link copied to clipboard
Return a StandardStackTracePrinter that prints the stack trace with the root exception last (the same as printStackTrace).
Link copied to clipboard
Return a new StandardStackTracePrinter from this one that will print all common frames rather the replacing them with the "...
Link copied to clipboard
Return a new StandardStackTracePrinter from this one that will only include throwables (excluding caused and suppressed) that match the given predicate.
Link copied to clipboard
Return a new StandardStackTracePrinter from this one uses the specified formatter to create a string representation of a throwable.
Link copied to clipboard
Return a new StandardStackTracePrinter from this one that will only include frames that match the given predicate.
Link copied to clipboard
Return a new StandardStackTracePrinter from this one uses the specified formatter to create a string representation of a frame.
Link copied to clipboard
Return a new StandardStackTracePrinter from this one that generates and prints hashes for each stacktrace.
Return a new StandardStackTracePrinter from this one that changes if hashes should be generated and printed for each stacktrace.
Link copied to clipboard
Return a new StandardStackTracePrinter from this one that print the stack trace using the specified line separator.
Link copied to clipboard
Return a new StandardStackTracePrinter from this one that will use ellipses to truncate output longer that the specified length.
Link copied to clipboard
open fun withMaximumThrowableDepth(maximumThrowableDepth: Int): StandardStackTracePrinter
Return a new StandardStackTracePrinter from this one that filter frames (including caused and suppressed) deeper then the specified maximum.
Link copied to clipboard
Return a new StandardStackTracePrinter from this one that will not print suppressed items.