ExtendedThrowable

class ExtendedThrowable[T <: Throwable](t: T)

See the ExtendedExceptions object description

class Object
trait Matchable
class Any

Value members

Concrete methods

def apply(i: Int): StackTraceElement
Returns:

the ith stacktrace element

def chainedExceptions: List[Throwable]
Returns:

the list of chained exceptions

def classLocation: String
Returns:

the class name and the line number where the Throwable was created

def exists(pattern: String): Boolean
Returns:

true if the pattern exists in one of the traces

def filter(pattern: String): T

Select all traces of this exception matching a given pattern

Select all traces of this exception matching a given pattern

def filter(f: Seq[StackTraceElement] => Seq[StackTraceElement]): T

Select all traces of this exception according to filtering function WARNING: this mutates the exception to be able to retain its type!

Select all traces of this exception according to filtering function WARNING: this mutates the exception to be able to retain its type!

def filterNot(pattern: String): T

Select all traces of this exception not matching a given pattern

Select all traces of this exception not matching a given pattern

def fullLocation: String
Returns:

the class name, file Name and the line number where the Throwable was created

def getFullStackTrace: List[StackTraceElement]
Returns:

the list of all stacktrace elements

Returns:

the full stack trace as a string

def headOption: Option[StackTraceElement]
Returns:

the first stacktrace element as an option

def location: String
Returns:

the file name and the line number where the Throwable was created

def messageAndCause: String
Returns:

the exception message and its cause if any

print all the stacktrace for t, including the traces from its causes

print all the stacktrace for t, including the traces from its causes