你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
ExceptionUtils Class
- java.
lang. Object - com.
microsoft. azure. documentdb. bulkexecutor. internal. ExceptionUtils
- com.
public class ExceptionUtils
Constructor Summary
Constructor | Description | |
---|---|---|
ExceptionUtils() |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Document |
getThrottelingException(Exception e) |
static boolean | isGone(DocumentClientException e) |
static boolean | isSplit(DocumentClientException e) |
static boolean | isThrottled(DocumentClientException e) |
static boolean | isTimedOut(DocumentClientException e) |
static boolean | isUnavailable(DocumentClientException e) |
static java.lang.Exception | toException(Throwable t) |
static java.lang.RuntimeException | toRuntimeException(Exception e) |
Methods inherited from java.lang.Object
Constructor Details
ExceptionUtils
public ExceptionUtils()
Method Details
getThrottelingException
public static DocumentClientException getThrottelingException(Exception e)
Parameters:
isGone
public static boolean isGone(DocumentClientException e)
Parameters:
isSplit
public static boolean isSplit(DocumentClientException e)
Parameters:
isThrottled
public static boolean isThrottled(DocumentClientException e)
Parameters:
isTimedOut
public static boolean isTimedOut(DocumentClientException e)
Parameters:
isUnavailable
public static boolean isUnavailable(DocumentClientException e)
Parameters:
toException
public static Exception toException(Throwable t)
Parameters:
toRuntimeException
public static RuntimeException toRuntimeException(Exception e)
Parameters: