StackTraceOps

dotty.tools.dotc.util.StackTraceOps$
object StackTraceOps

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Extensions

Extensions

extension (t: Throwable)(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.

Value parameters

e

the exception

p

the predicate to select the prefix

Attributes