@Test public void isServerException() throws Exception { SofaRpcException exception = new SofaRpcException(RpcErrorType.SERVER_BUSY, "111"); Assert.assertTrue(ExceptionUtils.isServerException(exception)); exception = new SofaRpcException(RpcErrorType.CLIENT_TIMEOUT, "111"); Assert.assertFalse(ExceptionUtils.isServerException(exception)); }
public static boolean isServerException(SofaRpcException exception) { int errorType = exception.getErrorType(); return errorType >= 100 && errorType < 200; }
ExceptionUtils { public static boolean isServerException(SofaRpcException exception) { int errorType = exception.getErrorType(); return errorType >= 100 && errorType < 200; } }
ExceptionUtils { public static boolean isServerException(SofaRpcException exception) { int errorType = exception.getErrorType(); return errorType >= 100 && errorType < 200; }  }
ExceptionUtils { public static boolean isServerException(SofaRpcException exception) { int errorType = exception.getErrorType(); return errorType >= 100 && errorType < 200; }  static SofaRpcRuntimeException buildRuntime(String configKey, String configValue); static SofaRpcRuntimeException buildRuntime(String configKey, String configValue, String message); static boolean isServerException(SofaRpcException exception); static boolean isClientException(SofaRpcException exception); static String toString(Throwable e); static String toShortString(Throwable e, int stackLevel); }
ExceptionUtils { public static boolean isServerException(SofaRpcException exception) { int errorType = exception.getErrorType(); return errorType >= 100 && errorType < 200; }  static SofaRpcRuntimeException buildRuntime(String configKey, String configValue); static SofaRpcRuntimeException buildRuntime(String configKey, String configValue, String message); static boolean isServerException(SofaRpcException exception); static boolean isClientException(SofaRpcException exception); static String toString(Throwable e); static String toShortString(Throwable e, int stackLevel);  }