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

cl.transbank.exception.TransbankException Maven / Gradle / Ivy

There is a newer version: 5.0.0
Show newest version
package cl.transbank.exception;

import lombok.Getter;

public class TransbankException extends Exception {
    @Getter private int code;

    public TransbankException() {
        super();
    }

    public TransbankException(String message) {
        super(message);
        this.code = -1;
    }

    public TransbankException(int code, String message) {
        super(message);
        this.code = code;
    }

    public TransbankException(int code, String message, Throwable cause) {
        super(message, cause);
        this.code = code;
    }

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

    public TransbankException(int code, Throwable cause) {
        super(cause);
        this.code = code;
    }

    public TransbankException(int code, String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
        this.code = code;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy