IotHubExceptionManager Class
- java.
lang. Object - com.
microsoft. azure. sdk. iot. service. exceptions. IotHubExceptionManager
- com.
public class IotHubExceptionManager
Provide static function to verify results and throw appropriate exception.
Method Summary
Modifier and Type | Method and Description |
---|---|
void |
httpResponseVerification(HttpResponse httpResponse)
Verify Http response using response status |
Iot |
mapException(int responseStatus, String description)
Return a new exception instance that best matches the given HTTP status code and description |
Method Details
httpResponseVerification
public static void httpResponseVerification(HttpResponse httpResponse)
Verify Http response using response status
Parameters:
Throws:
mapException
public static IotHubException mapException(int responseStatus, String description)
Return a new exception instance that best matches the given HTTP status code and description
Parameters:
Returns: