你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈