Throwablex

object Throwablex extends Throwablex
Companion
class
class Object
trait Matchable
class Any

Value members

Inherited methods

def exception(st: Seq[StackTraceElement]): Exception
Returns

an exception with the given stacktrace

Inherited from
Throwablex
def exception(m: String, st: Seq[StackTraceElement], cause: Throwable): Exception
Returns

an exception with the given message and stacktrace

Inherited from
Throwablex
def stackTraceElement(m: String, className: String, fileName: String, lineNumber: Int): StackTraceElement

utility method to create a default stacktrace element

utility method to create a default stacktrace element

Inherited from
Throwablex

Extensions

Inherited extensions

extension (t: T)
def apply[T <: Throwable](i: Int): StackTraceElement
Returns

the ith stacktrace element

Inherited from
Throwablex
def chainedExceptions[T <: Throwable]: List[Throwable]
Returns

the list of chained exceptions

Inherited from
Throwablex
def classLocation[T <: Throwable]: String
Returns

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

Inherited from
Throwablex
def exists[T <: Throwable](pattern: String): Boolean
Returns

true if the pattern exists in one of the traces

Inherited from
Throwablex
def filter[T <: Throwable](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!

Inherited from
Throwablex
def filter[T <: Throwable](pattern: String): T

Select all traces of this exception matching a given pattern

Select all traces of this exception matching a given pattern

Inherited from
Throwablex
def filterNot[T <: Throwable](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

Inherited from
Throwablex
def fullLocation[T <: Throwable]: String
Returns

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

Inherited from
Throwablex
def getFullStackTrace[T <: Throwable]: List[StackTraceElement]
Returns

the list of all stacktrace elements

Inherited from
Throwablex
def getFullStackTraceAsString[T <: Throwable]: String
Returns

the full stack trace as a string

Inherited from
Throwablex
def headOption[T <: Throwable]: Option[StackTraceElement]
Returns

the first stacktrace element as an option

Inherited from
Throwablex
def location[T <: Throwable]: String
Returns

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

Inherited from
Throwablex
def messageAndCause[T <: Throwable]: String
Returns

the exception message and its cause if any

Inherited from
Throwablex
def printFullStackTrace[T <: Throwable](): Unit

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

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

Inherited from
Throwablex
def setStackTrace[T <: Throwable](st: Seq[StackTraceElement]): T

set a new stacktrace

set a new stacktrace

Inherited from
Throwablex