Scala Compiler2.13.18 < Back


# Packages

-  package root

  The Scala compiler and reflection APIs.

  The Scala compiler and reflection APIs.

  Definition Classes
    root
-  package scala
  Definition Classes
    root
-  package tools
  Definition Classes
    scala
-  package nsc
  Definition Classes
    tools
-  package util
  Definition Classes
    nsc
- CharArrayReader
- CharArrayReaderData
- ClassPath
- ClassRepresentation
- DefaultJarFactory
- DirectoryClassPath
- DocStrings
- EditDistance
- EfficientClassPath
- EfficientClassPathCallBack
- EmptyAction
- Exceptional
- FailedInterrupt
- InterruptReq
- JarFactory
- JavaCharArrayReader
- JavaClassPath
- MergedClassPath
- ShowPickled
- SimpleTracer
- StackTraceOps
- StringUtil
- WorkScheduler
- quickie stack dump

c

scala.tools.nsc.util

# StackTraceOps

###

#### implicit final class StackTraceOps extends AnyVal with StackTracing

Source
  package.scala

Linear Supertypes
StackTracing, AnyVal, Any
Type Hierarchy

Ordering

1. Alphabetic
2. By Inheritance

Inherited

1. StackTraceOps
2. StackTracing
3. AnyVal
4. Any

Implicitly

1. by any2stringadd
2. by StringFormat
3. by Ensuring
4. by ArrowAssoc

1. Hide All
2. Show All

Visibility

1. Public
2. Protected

### Instance Constructors

1.  new StackTraceOps(e: Throwable)

### Value Members

1.  final def !=(arg0: Any): Boolean
   Definition Classes
     Any
2.  final def ##: Int
   Definition Classes
     Any
3.  def +(other: String): String
   Implicit
     This member is added by an implicit conversion from StackTraceOps toany2stringadd[StackTraceOps] performed by method any2stringadd in scala.Predef.
   Definition Classes
     any2stringadd
4.  def ->[B](y: B): (StackTraceOps, B)
   Implicit
     This member is added by an implicit conversion from StackTraceOps toArrowAssoc[StackTraceOps] performed by method ArrowAssoc in scala.Predef.
   Definition Classes
     ArrowAssoc
   Annotations
     @inline()
5.  final def ==(arg0: Any): Boolean
   Definition Classes
     Any
6.  final def asInstanceOf[T0]: T0
   Definition Classes
     Any
7.  def ensuring(cond: (StackTraceOps) => Boolean, msg: => Any): StackTraceOps
   Implicit
     This member is added by an implicit conversion from StackTraceOps toEnsuring[StackTraceOps] performed by method Ensuring in scala.Predef.
   Definition Classes
     Ensuring
8.  def ensuring(cond: (StackTraceOps) => Boolean): StackTraceOps
   Implicit
     This member is added by an implicit conversion from StackTraceOps toEnsuring[StackTraceOps] performed by method Ensuring in scala.Predef.
   Definition Classes
     Ensuring
9.  def ensuring(cond: Boolean, msg: => Any): StackTraceOps
   Implicit
     This member is added by an implicit conversion from StackTraceOps toEnsuring[StackTraceOps] performed by method Ensuring in scala.Predef.
   Definition Classes
     Ensuring
10.  def ensuring(cond: Boolean): StackTraceOps
    Implicit
      This member is added by an implicit conversion from StackTraceOps toEnsuring[StackTraceOps] performed by method Ensuring in scala.Predef.
    Definition Classes
      Ensuring
11.  def getClass(): Class[_ <: AnyVal]
    Definition Classes
      AnyVal → Any
12.  final def isInstanceOf[T0]: Boolean
    Definition Classes
      Any
13.  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

14.  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
15.  def toString(): String
    Definition Classes
      Any

### Deprecated Value Members

1.  def formatted(fmtstr: String): String
   Implicit
     This member is added by an implicit conversion from StackTraceOps toStringFormat[StackTraceOps] performed by method StringFormat in scala.Predef.
   Definition Classes
     StringFormat
   Annotations
     @deprecated @inline()
   Deprecated

     (Since version 2.12.16) Use `formatString.format(value)` instead of `value.formatted(formatString)`, or use the `f""` string interpolator. In Java 15 and later, `formatted` resolves to the new method in String which has reversed parameters.

2.  def →[B](y: B): (StackTraceOps, B)
   Implicit
     This member is added by an implicit conversion from StackTraceOps toArrowAssoc[StackTraceOps] performed by method ArrowAssoc in scala.Predef.
   Definition Classes
     ArrowAssoc
   Annotations
     @deprecated
   Deprecated

     (Since version 2.13.0) Use `->` instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.

### Inherited from StackTracing

### Inherited from AnyVal

### Inherited from Any

### Inherited by implicit conversion any2stringadd fromStackTraceOps to any2stringadd[StackTraceOps]

### Inherited by implicit conversion StringFormat fromStackTraceOps to StringFormat[StackTraceOps]

### Inherited by implicit conversion Ensuring fromStackTraceOps to Ensuring[StackTraceOps]

### Inherited by implicit conversion ArrowAssoc fromStackTraceOps to ArrowAssoc[StackTraceOps]

### Ungrouped