IotHubClientException Class

  • java.lang.Object
    • Exception
      • com.microsoft.azure.sdk.iot.device.exceptions.IotHubClientException

public class IotHubClientException

Exception that can occur when using a DeviceClient, ModuleClient, or a MultiplexingClient. Each instance contains the status code of the error as well as the recommendation on whether the request that resulted in this exception is retryable or not.

Constructor Summary

Constructor Description
IotHubClientException(IotHubStatusCode statusCode)
IotHubClientException(IotHubStatusCode statusCode, Exception nestedException)
IotHubClientException(IotHubStatusCode statusCode, String errorMessage)
IotHubClientException(IotHubStatusCode statusCode, String errorMessage, Exception nestedException)

Constructor Details

IotHubClientException

public IotHubClientException(IotHubStatusCode statusCode)

Parameters:

statusCode

IotHubClientException

public IotHubClientException(IotHubStatusCode statusCode, Exception nestedException)

Parameters:

statusCode
nestedException

IotHubClientException

public IotHubClientException(IotHubStatusCode statusCode, String errorMessage)

Parameters:

statusCode
errorMessage

IotHubClientException

public IotHubClientException(IotHubStatusCode statusCode, String errorMessage, Exception nestedException)

Parameters:

statusCode
errorMessage
nestedException

Applies to