IotHubServiceException Class
- java.
lang. Object - java.
lang. Throwable - java.
lang. Exception - com.
microsoft. azure. sdk. iot. device. exceptions. DeviceClientException - com.
microsoft. azure. sdk. iot. device. exceptions. TransportException - com.
microsoft. azure. sdk. iot. device. exceptions. IotHubServiceException
- com.
- com.
- com.
- java.
- java.
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 |
---|---|
Iot |
getStatusCode() |
Methods inherited from TransportException
Methods inherited from java.lang.Object
Methods inherited from java.lang.Throwable
Constructor Details
IotHubServiceException
public IotHubServiceException()
IotHubServiceException
public IotHubServiceException(String message)
Parameters:
IotHubServiceException
public IotHubServiceException(String message, Throwable cause)
Parameters:
IotHubServiceException
public IotHubServiceException(Throwable cause)
Parameters:
Method Details
getStatusCode
public IotHubStatusCode getStatusCode()
Applies to
Azure SDK for Java