StackTraceOps

dotty.tools.dotc.util.StackTraceOps$

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Extensions

Extensions

extension (t: Throwable)

Format a stack trace, taking the prefix span satisfying a predicate.

Format a stack trace, taking the prefix span satisfying a predicate.

The format is similar to the typical case described in the Javadoc for java.lang.Throwable#printStackTrace. If a stack trace is truncated, it will be followed by a line of the form ... 3 elided, by analogy to the lines ... 3 more which indicate shared stack trace segments.

Attributes

e

the exception

p

the predicate to select the prefix