IotHubException Class
- java.
lang. Object - java.
lang. Throwable - java.
lang. Exception - com.
microsoft. azure. sdk. iot. service. exceptions. IotHubException
- com.
- java.
- java.
public class IotHubException
extends java.lang.Exception
Super class for IotHub exceptions
Field Summary
Modifier and Type | Field and Description |
---|---|
protected int |
errorCode
Provides the HTTP error code, if applicable. |
protected
Error |
errorCodeDescription
Provides the HTTP error code description, if applicable. |
Constructor Summary
Constructor | Description |
---|---|
IotHubException() |
Instantiate a new Iot |
IotHubException(int errorCode, String message) |
Instantiate a new Iot |
IotHubException(String message) |
Instantiate a new Iot |
Methods inherited from java.lang.Object
Methods inherited from java.lang.Throwable
Field Details
errorCode
protected int errorCode
Provides the HTTP error code, if applicable.
This value will be a 6 digital error code such as 404001 if the service provided one in response message to the HTTP request. Otherwise it will be a 3 digit status code such as 404.
For AMQP operations such as sending cloud to device messages, receiving message feedback, and getting file upload notifications, this field will not be populated.
errorCodeDescription
protected ErrorCodeDescription errorCodeDescription
Provides the HTTP error code description, if applicable.
For AMQP operations such as sending cloud to device messages, receiving message feedback, and getting file upload notifications, this field will not be populated.
Constructor Details
IotHubException
public IotHubException()
Instantiate a new IotHubException with no details.
IotHubException
public IotHubException(int errorCode, String message)
Instantiate a new IotHubException.
Parameters:
IotHubException
public IotHubException(String message)
Instantiate a new IotHubException.
Parameters:
Applies to
Azure SDK for Java
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기