IotHubServiceException Class

  • java.lang.Object
    • Exception

public class IotHubServiceException extends TransportException

Exception class that covers all exceptions communicated from the IoT Hub that are not due to connection issues in the transport protocols. These exceptions map to standard status codes from the service (401 : unauthorized, 404 : not found, etc.)

Constructor Summary

Constructor Description
IotHubServiceException()
IotHubServiceException(String message)
IotHubServiceException(String message, Throwable cause)
IotHubServiceException(Throwable cause)

Method Summary

Modifier and Type Method and Description
IotHubStatusCode getStatusCode()

Inherited Members

Constructor Details

IotHubServiceException

public IotHubServiceException()

IotHubServiceException

public IotHubServiceException(String message)

Parameters:

message

IotHubServiceException

public IotHubServiceException(String message, Throwable cause)

Parameters:

message
cause

IotHubServiceException

public IotHubServiceException(Throwable cause)

Parameters:

cause

Method Details

getStatusCode

public IotHubStatusCode getStatusCode()

Applies to