Files
rr3-apk/decompiled-community/sources/com/amazonaws/transform/JsonErrorUnmarshaller.java
Daniel Elliott c080f0d97f Add Discord community version (64-bit only)
- Added realracing3-community.apk (71.57 MB)
- Removed 32-bit support (armeabi-v7a)
- Only includes arm64-v8a libraries
- Decompiled source code included
- Added README-community.md with analysis
2026-02-18 15:48:36 -08:00

32 lines
1.2 KiB
Java

package com.amazonaws.transform;
import com.amazonaws.AmazonClientException;
import com.amazonaws.AmazonServiceException;
import com.amazonaws.http.JsonErrorResponseHandler;
/* loaded from: classes.dex */
public class JsonErrorUnmarshaller extends AbstractErrorUnmarshaller<JsonErrorResponseHandler.JsonErrorResponse> {
public boolean match(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
return true;
}
public JsonErrorUnmarshaller() {
}
public JsonErrorUnmarshaller(Class cls) {
super(cls);
}
@Override // com.amazonaws.transform.Unmarshaller
public AmazonServiceException unmarshall(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
String message = jsonErrorResponse.getMessage();
String errorCode = jsonErrorResponse.getErrorCode();
if ((message == null || message.isEmpty()) && (errorCode == null || errorCode.isEmpty())) {
throw new AmazonClientException("Neither error message nor error code is found in the error response payload.");
}
AmazonServiceException newException = newException(message);
newException.setErrorCode(errorCode);
return newException;
}
}