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

IotHubServiceException Class

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()

Methods inherited from TransportException

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.wait java.lang.Object.wait java.lang.Object.wait

Methods inherited from java.lang.Throwable

java.lang.Throwable.addSuppressed java.lang.Throwable.fillInStackTrace java.lang.Throwable.getCause java.lang.Throwable.getLocalizedMessage java.lang.Throwable.getMessage java.lang.Throwable.getStackTrace java.lang.Throwable.getSuppressed java.lang.Throwable.initCause java.lang.Throwable.printStackTrace java.lang.Throwable.printStackTrace java.lang.Throwable.printStackTrace java.lang.Throwable.setStackTrace java.lang.Throwable.toString

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