com.chargebee.exceptions.BatchAPIException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of chargebee-java Show documentation
Show all versions of chargebee-java Show documentation
Java client library for ChargeBee API
package com.chargebee.exceptions;
import com.chargebee.APIException;
import org.json.JSONObject;
import static com.chargebee.BatchConstants.CORRELATION_ID;
public class BatchAPIException extends APIException {
String correlationId;
public BatchAPIException(int httpStatusCode, String message, JSONObject jsonObj) {
super(httpStatusCode, message, jsonObj);
this.correlationId = jsonObj.optString(CORRELATION_ID);
}
public String getCorrelationId() {
return correlationId;
}
}