StackTrace

sbt.internal.util.StackTrace
object StackTrace

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
StackTrace.type

Members list

Value members

Concrete methods

def isSbtClass(name: String): Boolean
def trimmed(t: Throwable, d: Int): String

Return a printable representation of the stack trace associated with t. Information about t and its Throwable causes is included. The number of lines to be included for each Throwable is configured via d which should be greater than or equal to 0.

Return a printable representation of the stack trace associated with t. Information about t and its Throwable causes is included. The number of lines to be included for each Throwable is configured via d which should be greater than or equal to 0.

  • If d is 0, then all elements are included up to (but not including) the first element that comes from sbt.
  • If d is greater than 0, then up to that many lines are included, where the line for the Throwable is counted plus one line for each stack element. Less lines will be included if there are not enough stack elements.

Attributes

def trimmedLines(t: Throwable, d: Int): List[String]

Return a printable representation of the stack trace associated with t. Information about t and its Throwable causes is included. The number of lines to be included for each Throwable is configured via d which should be greater than or equal to 0.

Return a printable representation of the stack trace associated with t. Information about t and its Throwable causes is included. The number of lines to be included for each Throwable is configured via d which should be greater than or equal to 0.

  • If d is 0, then all elements are included up to (but not including) the first element that comes from sbt.
  • If d is greater than 0, then up to that many lines are included, where the line for the Throwable is counted plus one line for each stack element. Less lines will be included if there are not enough stack elements.

See also ConsoleAppender where d <= 2 is treated specially by printing a prepared statement.

Attributes