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

org.dromara.sms4j.comm.exception.SmsBlendException Maven / Gradle / Ivy

package org.dromara.sms4j.comm.exception;

public class SmsBlendException extends RuntimeException{
    public String code;
    public final String message;
    public String requestId;

    public SmsBlendException(String message) {
        super(message);
        this.message = message;
    }

    public SmsBlendException(String code, String message) {
        super("[" + code + "] " + message);
        this.message = message;
        this.code = code;
    }

    public SmsBlendException(String code, String message, String requestId) {
        super("[" + code + "] " + message);
        this.message = message;
        this.code = code;
        this.requestId = requestId;
    }

    public SmsBlendException(Exception e){
        super(e);
        this.message = e.getMessage();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy