implicit final class StackTraceOps extends AnyVal with StackTracing
- Alphabetic
- By Inheritance
- StackTraceOps
- StackTracing
- AnyVal
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Value Members
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- def stackTracePrefixString(p: (StackTraceElement) => Boolean): String
Format the stack trace, returning the prefix consisting of frames that satisfy a given predicate.
Format the stack trace, returning the prefix consisting of frames that satisfy a given 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.- p
the predicate to select the prefix
- def stackTracePrefixString(e: Throwable)(p: (StackTraceElement) => Boolean): String
Format a stack trace, returning the prefix consisting of frames that satisfy a given predicate.
Format a stack trace, returning the prefix consisting of frames that satisfy a given 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.- e
the exception
- p
the predicate to select the prefix
- Definition Classes
- StackTracing
The Scala compiler and reflection APIs.