public class ExceptionUtils
extends java.lang.Object
| Constructor and Description |
|---|
ExceptionUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
propagateCause(java.lang.Throwable throwable)
Retrieves cause exception and wraps to
CommandActionExecutionException. |
static java.lang.Throwable |
unwrapCause(java.lang.Throwable e)
Gets actual exception if it's wrapped in
CommandActionExecutionException or HystrixBadRequestException. |
static CommandActionExecutionException |
wrapCause(java.lang.Throwable throwable)
Wraps cause exception to
CommandActionExecutionException. |
public static void propagateCause(java.lang.Throwable throwable)
throws CommandActionExecutionException
CommandActionExecutionException.throwable - the throwableCommandActionExecutionExceptionpublic static CommandActionExecutionException wrapCause(java.lang.Throwable throwable)
CommandActionExecutionException.throwable - the throwablepublic static java.lang.Throwable unwrapCause(java.lang.Throwable e)
CommandActionExecutionException or HystrixBadRequestException.e - the exception