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

top.coos.extra.mail.MailException Maven / Gradle / Ivy

There is a newer version: 2.2.7.1
Show newest version
package top.coos.extra.mail;

import top.coos.core.exceptions.ExceptionUtil;
import top.coos.util.StringUtil;

/**
 * 邮件异常

 */
public class MailException extends RuntimeException{
	private static final long serialVersionUID = 8247610319171014183L;

	public MailException(Throwable e) {
		super(ExceptionUtil.getMessage(e), e);
	}
	
	public MailException(String message) {
		super(message);
	}
	
	public MailException(String messageTemplate, Object... params) {
		super(StringUtil.format(messageTemplate, params));
	}
	
	public MailException(String message, Throwable throwable) {
		super(message, throwable);
	}
	
	public MailException(Throwable throwable, String messageTemplate, Object... params) {
		super(StringUtil.format(messageTemplate, params), throwable);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy