1 package org.apache.turbine.util.velocity;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 import org.apache.turbine.util.TurbineException;
20
21 /***
22 * This exception is thrown if a VelocityEmail/VelocityHtmlEmail can not be
23 * sent using JavaMail. It will most likly wrap a javax.mail.MessagingException
24 * exception.
25 *
26 * @author <a href="mailto:epugh@upstate.com">Eric Pugh</a>
27 * @version $Id: VelocityEmailException.java,v 1.3.2.2 2004/05/20 03:28:01 seade Exp $
28 */
29 public class VelocityEmailException extends TurbineException
30 {
31 /***
32 * Constructs a new <code>VelocityEmailException</code> without specified
33 * detail message.
34 */
35 public VelocityEmailException()
36 {
37 }
38
39 /***
40 * Constructs a new <code>VelocityEmailException</code> with specified
41 * detail message.
42 *
43 * @param msg The error message.
44 */
45 public VelocityEmailException(String msg)
46 {
47 super(msg);
48 }
49
50 /***
51 * Constructs a new <code>VelocityEmailException</code> with specified
52 * nested <code>Throwable</code>.
53 *
54 * @param nested The exception or error that caused this exception
55 * to be thrown.
56 */
57 public VelocityEmailException(Throwable nested)
58 {
59 super(nested);
60 }
61
62 /***
63 * Constructs a new <code>VelocityEmailException</code> with specified
64 * detail message and nested <code>Throwable</code>.
65 *
66 * @param msg The error message.
67 * @param nested The exception or error that caused this exception
68 * to be thrown.
69 */
70 public VelocityEmailException(String msg, Throwable nested)
71 {
72 super(msg, nested);
73 }
74 }