| java.lang.Object | |
| ↳ | com.pnfsoftware.jeb.util.base.Throwables |
Utility methods for throwables (errors, exceptions, runtime exceptions).
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Throwables() | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| static String |
formatStacktrace(Throwable t)
Format a throwable as a multi-line, human-readable stacktrace.
| ||||||||||
| static String |
formatStacktraceShort(Throwable t)
Format a throwable as a one-line, human-readable stacktrace.
| ||||||||||
| static Throwable |
getRootCause(Throwable t)
Get the innermost cause of a throwable.
| ||||||||||
| static void |
rethrowUnchecked(Throwable t)
Rethrow a throwable if it is a RuntimeException, else wrap it in a
RuntimeException and throw.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Format a throwable as a multi-line, human-readable stacktrace.
Format a throwable as a one-line, human-readable stacktrace.
Get the innermost cause of a throwable.
Rethrow a throwable if it is a RuntimeException, else wrap it in a RuntimeException and throw.