com.ksyun.api.sdk.reponse.KscErrorUnmarshaller Maven / Gradle / Ivy
package com.ksyun.api.sdk.reponse;
import java.util.Map;
import com.ksyun.api.sdk.http.UnmarshallerContext;
public class KscErrorUnmarshaller {
public static KscError unmarshall(KscError error, UnmarshallerContext context) {
Map map = context.getResponseMap();
error.setStatusCode(context.getHttpStatus());
error.setRequestId(map.get("Error.RequestId"));
error.setErrorCode(map.get("Error.Code"));
error.setErrorMessage(map.get("Error.Message"));
return error;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy