public class

MailPreparationException

extends MailException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ org.springframework.core.NestedRuntimeException
           ↳ org.springframework.mail.MailException
             ↳ org.springframework.mail.MailPreparationException

Class Overview

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.

Summary

Public Constructors
MailPreparationException(String msg)
Constructor for MailPreparationException.
MailPreparationException(String msg, Throwable cause)
Constructor for MailPreparationException.
MailPreparationException(Throwable cause)
[Expand]
Inherited Methods
From class org.springframework.core.NestedRuntimeException
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public MailPreparationException (String msg)

Constructor for MailPreparationException.

Parameters
msg the detail message

public MailPreparationException (String msg, Throwable cause)

Constructor for MailPreparationException.

Parameters
msg the detail message
cause the root cause from the mail API in use

public MailPreparationException (Throwable cause)