public class IotHubExceptionManager extends Object
| Constructor and Description |
|---|
IotHubExceptionManager() |
| Modifier and Type | Method and Description |
|---|---|
static void |
httpResponseVerification(HttpResponse httpResponse)
Verify Http response using response status
|
public static void httpResponseVerification(HttpResponse httpResponse) throws IotHubBadFormatException, IotHubUnathorizedException, IotHubTooManyDevicesException, IotHubPreconditionFailedException, IotHubTooManyRequestsException, IotHubInternalServerErrorException, IotHubServerBusyException, IotHubBadGatewayException, IotHubNotFoundException, IotHubGatewayTimeoutException, IotHubException
httpResponse - Http response object to verifyIotHubBadFormatException - This exception is thrown if the response status equal 400IotHubUnathorizedException - This exception is thrown if the response status equal 401IotHubTooManyDevicesException - This exception is thrown if the response status equal 403IotHubNotFoundException - This exception is thrown if the response status equal 404IotHubPreconditionFailedException - This exception is thrown if the response status equal 412IotHubTooManyRequestsException - This exception is thrown if the response status equal 429IotHubInternalServerErrorException - This exception is thrown if the response status equal 500IotHubBadGatewayException - This exception is thrown if the response status equal 502IotHubServerBusyException - This exception is thrown if the response status equal 503IotHubGatewayTimeoutException - This exception is thrown if the response status equal 504IotHubException - This exception is thrown if the response status none of them above and greater then 300Copyright © 2017. All rights reserved.