public class Exceptions extends Object
| Modifier and Type | Field and Description |
|---|---|
static Thread.UncaughtExceptionHandler |
SILENT_UNCAUGHT_EXCEPTION_HANDLER |
| Modifier and Type | Method and Description |
|---|---|
static <T extends Throwable> |
chain(T initial,
T current) |
static boolean |
contains(Throwable cause,
Class... anyOfTheseClasses) |
static boolean |
contains(Throwable cause,
Predicate<Throwable> toLookFor) |
static boolean |
contains(Throwable cause,
String containsMessage,
Class... anyOfTheseClasses) |
static void |
setMessage(Throwable cause,
String message) |
static <T extends Throwable> |
withCause(T exception,
Throwable cause)
Deprecated.
Use
Throwable.initCause(Throwable) instead. |
static <T extends Throwable> |
withMessage(T cause,
String message) |
static <T extends Throwable> |
withSuppressed(T exception,
Throwable... suppressed)
Deprecated.
Use
Throwable.addSuppressed(Throwable) instead. |
public static final Thread.UncaughtExceptionHandler SILENT_UNCAUGHT_EXCEPTION_HANDLER
@Deprecated public static <T extends Throwable> T withCause(T exception, Throwable cause)
Throwable.initCause(Throwable) instead.@Deprecated public static <T extends Throwable> T withSuppressed(T exception, Throwable... suppressed)
Throwable.addSuppressed(Throwable) instead.public static boolean contains(Throwable cause, String containsMessage, Class... anyOfTheseClasses)
public static <T extends Throwable> T chain(T initial, T current)
Copyright © 2016–2021 MWARE SOLUTIONS. All rights reserved.