ErrorMessageParser Class
- java.
lang. Object - com.
microsoft. azure. sdk. iot. service. exceptions. ErrorMessageParser
- com.
public class ErrorMessageParser
Representation of a single error message collection with a Json deserializer.
Method Summary
Modifier and Type | Method and Description |
---|---|
int |
bestErrorCode(String fullErrorMessage)
Get the fully qualified error code from the http response message errorReason, if one exists. |
String |
bestErrorMessage(String fullErrorMessage)
Parse the fullErrorMessage from the IoTHub to find the root cause of the problem, after that, return a string with the best information about the issue |
int | getDefaultErrorCode() |
Method Details
bestErrorCode
public static int bestErrorCode(String fullErrorMessage)
Get the fully qualified error code from the http response message errorReason, if one exists.
Parameters:
Returns:
bestErrorMessage
public static String bestErrorMessage(String fullErrorMessage)
Parse the fullErrorMessage from the IoTHub to find the root cause of the problem, after that, return a string with the best information about the issue
Parameters:
Returns:
getDefaultErrorCode
public static int getDefaultErrorCode()
Applies to
Azure SDK for Java