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

tech.mhuang.ext.interchan.payment.exception.InterchanPayException Maven / Gradle / Ivy

There is a newer version: 1.6.1
Show newest version
package tech.mhuang.ext.interchan.payment.exception;

import lombok.Getter;
import lombok.Setter;

public class InterchanPayException extends Exception {

    private static final long serialVersionUID = -238091758285157331L;

    @Setter
    @Getter
    private int code;

    @Setter
    @Getter
    private String message;

    public InterchanPayException() {
        super();
    }

    public InterchanPayException(String message, Throwable cause) {
        super(message, cause);
    }

    public InterchanPayException(String message) {
        super(message);
    }

    public InterchanPayException(Throwable cause) {
        super(cause);
    }

    public InterchanPayException(int errCode, String errMsg) {
        super(String.format("%d:%s", errCode, errMsg));
        this.code = errCode;
        this.message = errMsg;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy