com.cybersource.flex.sdk.exception.FlexApiException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of flex-server-sdk Show documentation
Show all versions of flex-server-sdk Show documentation
CyberSource Flex API Server Side SDK
package com.cybersource.flex.sdk.exception;
import com.cybersource.flex.sdk.model.FlexErrorResponse;
public class FlexApiException extends FlexException {
private int status;
private FlexErrorResponse flexErrorResponse;
private String vcCorrelationId;
public FlexApiException(int status, FlexErrorResponse flexErrorResponse, String vcCorrelationId) {
super(String.format("FLEX API returned a status of [%d]", status));
this.status = status;
this.flexErrorResponse = flexErrorResponse;
this.vcCorrelationId = vcCorrelationId;
}
public int getStatus() {
return status;
}
public FlexErrorResponse getFlexErrorResponse() {
return flexErrorResponse;
}
public String getVcCorrelationId() {
return vcCorrelationId;
}
}