public final class ExceptionUtils extends Object
| 构造器和说明 |
|---|
ExceptionUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static SofaRpcRuntimeException |
buildRuntime(String configKey,
String configValue) |
static SofaRpcRuntimeException |
buildRuntime(String configKey,
String configValue,
String message) |
static boolean |
isClientException(SofaRpcException exception) |
static boolean |
isServerException(SofaRpcException exception) |
static String |
toShortString(Throwable e,
int stackLevel)
返回消息+简短堆栈信息(e.printStackTrace()的内容)
|
static String |
toString(Throwable e)
返回堆栈信息(e.printStackTrace()的内容)
|
public static SofaRpcRuntimeException buildRuntime(String configKey, String configValue)
public static SofaRpcRuntimeException buildRuntime(String configKey, String configValue, String message)
public static boolean isServerException(SofaRpcException exception)
public static boolean isClientException(SofaRpcException exception)
public static String toString(Throwable e)
e - ThrowableCopyright © 2008–2018 The Ant Financial. All rights reserved.