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

com.cybersource.flex.sdk.exception.FlexApiException Maven / Gradle / Ivy

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy