public class ErrorMessageParser extends Object
Constructor and Description |
---|
ErrorMessageParser() |
Modifier and Type | Method and Description |
---|---|
static int |
bestErrorCode(String fullErrorMessage)
Get the fully qualified error code from the http response message errorReason, if one exists.
|
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
|
static int |
getDefaultErrorCode() |
public static String bestErrorMessage(String fullErrorMessage)
fullErrorMessage
- is the full error message from the IoTHubpublic static int bestErrorCode(String fullErrorMessage)
fullErrorMessage
- the http response message error reasonpublic static int getDefaultErrorCode()
Copyright © 2022. All rights reserved.