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

jp.webpay.exception.CardException Maven / Gradle / Ivy

There is a newer version: 1.2.1
Show newest version
package jp.webpay.exception;

import lombok.Getter;
import lombok.NonNull;

import java.util.Map;

public class CardException extends WebPayException {
    @Getter
    private final String type;
    @Getter
    private final String code;
    @Getter
    private final String param;

    CardException(int status, @NonNull Map errorInfo) {
        super(errorInfo.get("message"), status, errorInfo);
        this.type = errorInfo.get("type");
        this.code = errorInfo.get("code");
        this.param = errorInfo.get("param");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy