public class ExceptionUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ExceptionUtils.NetExceptionType |
| Modifier and Type | Field and Description |
|---|---|
static String |
CONNECT_EXCEPTION_CLASS_NAME |
static String |
CONNECT_TIME_OUT_EXCEPTION_CLASS_NAME |
static String |
CONNECT_TIMED_OUT |
static int |
MAX_CAUSE_DEP |
static String |
READ_TIME_OUT_EXCEPTION_CLASS_NAME |
| Constructor and Description |
|---|
ExceptionUtils() |
| Modifier and Type | Method and Description |
|---|---|
static EngineExecutionException |
createEngineExecutionException(Exception e,
FrameworkErrorCode code,
String message,
StateMachineInstance stateMachineInstance,
StateInstance stateInstance) |
static EngineExecutionException |
createEngineExecutionException(Exception e,
FrameworkErrorCode code,
String message,
StateMachineInstance stateMachineInstance,
String stateName) |
static EngineExecutionException |
createEngineExecutionException(FrameworkErrorCode code,
String message,
StateMachineInstance stateMachineInstance,
StateInstance stateInstance) |
static ExceptionUtils.NetExceptionType |
getNetExceptionType(Throwable throwable)
getNetExceptionType
|
static boolean |
isNetException(Throwable throwable)
Determine if the it is network exception
|
public static final String CONNECT_TIMED_OUT
public static final String CONNECT_TIME_OUT_EXCEPTION_CLASS_NAME
public static final String READ_TIME_OUT_EXCEPTION_CLASS_NAME
public static final String CONNECT_EXCEPTION_CLASS_NAME
public static final int MAX_CAUSE_DEP
public static EngineExecutionException createEngineExecutionException(Exception e, FrameworkErrorCode code, String message, StateMachineInstance stateMachineInstance, StateInstance stateInstance)
public static EngineExecutionException createEngineExecutionException(FrameworkErrorCode code, String message, StateMachineInstance stateMachineInstance, StateInstance stateInstance)
public static EngineExecutionException createEngineExecutionException(Exception e, FrameworkErrorCode code, String message, StateMachineInstance stateMachineInstance, String stateName)
public static ExceptionUtils.NetExceptionType getNetExceptionType(Throwable throwable)
throwable - the throwablepublic static boolean isNetException(Throwable throwable)
throwable - the throwableCopyright © 2023 Seata. All rights reserved.