类 MailPreparationException
- java.lang.Object
- java.lang.Throwable
- java.lang.Exception
- java.lang.RuntimeException
- org.springframework.core.NestedRuntimeException
- org.springframework.mail.MailException
- org.springframework.mail.MailPreparationException
- 所有已实现的接口:
Serializable
public class MailPreparationException extends MailException
Exception to be thrown by user code if a mail cannot be prepared properly, for example when a Velocity template cannot be rendered for the mail text.
构造器概要
构造器 构造器 说明 MailPreparationException(String msg)
Constructor for MailPreparationException.MailPreparationException(String msg, Throwable cause)
Constructor for MailPreparationException.MailPreparationException(Throwable cause)
方法概要
从类继承的方法 org.springframework.core.NestedRuntimeException
contains, getMessage, getMostSpecificCause, getRootCause
构造器详细资料
MailPreparationException
public MailPreparationException(String msg)
Constructor for MailPreparationException.- 参数:
msg
- the detail message
MailPreparationException
public MailPreparationException(String msg, Throwable cause)
Constructor for MailPreparationException.- 参数:
msg
- the detail messagecause
- the root cause from the mail API in use
MailPreparationException
public MailPreparationException(Throwable cause)