package cn.stylefeng.roses.kernel.sms.api.exception;

import cn.stylefeng.roses.kernel.rule.abstracts.AbstractExceptionEnum;
import cn.stylefeng.roses.kernel.rule.exception.base.ServiceException;
import cn.stylefeng.roses.kernel.sms.api.constants.SmsConstants;

/**
 * 短信发送的异常
 *
 * @author fengshuonan
 * @date 2020/10/26 16:53
 */
public class SmsException extends ServiceException {

    public SmsException(String errorCode, String userTip) {
        super(SmsConstants.SMS_MODULE_NAME, errorCode, userTip);
    }

    public SmsException(AbstractExceptionEnum exception) {
        super(SmsConstants.SMS_MODULE_NAME, exception);
    }

}
