你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ExceptionUtils Class

  • java.lang.Object
    • com.microsoft.azure.documentdb.bulkexecutor.internal.ExceptionUtils

public class ExceptionUtils

Constructor Summary

Constructor Description
ExceptionUtils()

Method Summary

Modifier and Type Method and Description
static DocumentClientException 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

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

ExceptionUtils

public ExceptionUtils()

Method Details

getThrottelingException

public static DocumentClientException getThrottelingException(Exception e)

Parameters:

e

isGone

public static boolean isGone(DocumentClientException e)

Parameters:

e

isSplit

public static boolean isSplit(DocumentClientException e)

Parameters:

e

isThrottled

public static boolean isThrottled(DocumentClientException e)

Parameters:

e

isTimedOut

public static boolean isTimedOut(DocumentClientException e)

Parameters:

e

isUnavailable

public static boolean isUnavailable(DocumentClientException e)

Parameters:

e

toException

public static Exception toException(Throwable t)

Parameters:

t

toRuntimeException

public static RuntimeException toRuntimeException(Exception e)

Parameters:

e

Applies to