IotHubServiceException Class
- java.
lang. Object - Exception
- TransportException
- com.
microsoft. azure. sdk. iot. device. transport. IotHubServiceException
- com.
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() |
Inherited Members
TransportException.isRetryable
TransportException.isRetryable()
TransportException.setRetryable(boolean isRetryable)
TransportException.toIotHubClientException()
TransportException.TransportException()
TransportException.TransportException(String message)
TransportException.TransportException(String message, Throwable cause)
TransportException.TransportException(Throwable cause)
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Java