All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ksyun.api.sdk.reponse.KscErrorUnmarshaller Maven / Gradle / Ivy

There is a newer version: 2.1.8
Show newest version
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