package org.yeshi.utils.exception; public class MailSendException extends Exception { public final static int CODE_NETWORK_ERROR = 1; public final static int CODE_BUSINESS_ERROR = 2; private static final long serialVersionUID = 1L; private int code; private String msg; public int getCode() { return code; } public String getMsg() { return msg; } public MailSendException(int code, String msg) { this.code = code; this.msg = msg; } public MailSendException() { } @Override public String getMessage() { return this.msg; } }