This trait adds some utility methods to Throwable
objects.
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object Throwablex.type
Members list
Value members
Concrete methods
Attributes
- Returns
-
an exception with the given message and stacktrace
Attributes
- Returns
-
an exception with the given stacktrace
utility method to create a default stacktrace element
utility method to create a default stacktrace element
Attributes
Extensions
Extensions
Attributes
- Returns
-
the ith stacktrace element
Attributes
- Returns
-
the list of chained exceptions
Attributes
- Returns
-
the class name and the line number where the Throwable was created
Attributes
- Returns
-
true if the pattern exists in one of the traces
Select all traces of this exception matching a given pattern
Select all traces of this exception matching a given pattern
Attributes
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!
Attributes
Select all traces of this exception not matching a given pattern
Select all traces of this exception not matching a given pattern
Attributes
Attributes
- Returns
-
the class name, file Name and the line number where the Throwable was created
Attributes
- Returns
-
the list of all stacktrace elements
Attributes
- Returns
-
the full stack trace as a string
Attributes
- Returns
-
the first stacktrace element as an option
Attributes
- Returns
-
the file name and the line number where the Throwable was created
Attributes
- 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
Attributes
set a new stacktrace
set a new stacktrace