Compartir vía


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