public class SdkJsonErrorMessageParser extends Object implements ErrorMessageParser
Modifier and Type | Field and Description |
---|---|
static SdkJsonErrorMessageParser |
DEFAULT_ERROR_MESSAGE_PARSER
Standard JSON Error Message Parser that checks for JSON fields in this order: 'message',
'Message', 'errorMessage'
|
Modifier and Type | Method and Description |
---|---|
String |
parseErrorMessage(SdkHttpFullResponse httpResponse,
SdkJsonNode jsonNode)
Parse the error message from the response.
|
public static final SdkJsonErrorMessageParser DEFAULT_ERROR_MESSAGE_PARSER
public String parseErrorMessage(SdkHttpFullResponse httpResponse, SdkJsonNode jsonNode)
parseErrorMessage
in interface ErrorMessageParser
Copyright © 2019. All rights reserved.