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 278822 2005-09-05 19:53:05Z henning $
28 */
29 public class VelocityEmailException extends TurbineException
30 {
31 /*** Serial Version UID */
32 private static final long serialVersionUID = 191063357577698340L;
33
34 /***
35 * Constructs a new <code>VelocityEmailException</code> without specified
36 * detail message.
37 */
38 public VelocityEmailException()
39 {
40 }
41
42 /***
43 * Constructs a new <code>VelocityEmailException</code> with specified
44 * detail message.
45 *
46 * @param msg The error message.
47 */
48 public VelocityEmailException(String msg)
49 {
50 super(msg);
51 }
52
53 /***
54 * Constructs a new <code>VelocityEmailException</code> with specified
55 * nested <code>Throwable</code>.
56 *
57 * @param nested The exception or error that caused this exception
58 * to be thrown.
59 */
60 public VelocityEmailException(Throwable nested)
61 {
62 super(nested);
63 }
64
65 /***
66 * Constructs a new <code>VelocityEmailException</code> with specified
67 * detail message and nested <code>Throwable</code>.
68 *
69 * @param msg The error message.
70 * @param nested The exception or error that caused this exception
71 * to be thrown.
72 */
73 public VelocityEmailException(String msg, Throwable nested)
74 {
75 super(msg, nested);
76 }
77 }