01: package org.apache.turbine.util.velocity;
02:
03: /*
04: * Copyright 2001-2005 The Apache Software Foundation.
05: *
06: * Licensed under the Apache License, Version 2.0 (the "License")
07: * you may not use this file except in compliance with the License.
08: * You may obtain a copy of the License at
09: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing, software
13: * distributed under the License is distributed on an "AS IS" BASIS,
14: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15: * See the License for the specific language governing permissions and
16: * limitations under the License.
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: /** Serial Version UID */
31: private static final long serialVersionUID = 191063357577698340L;
32:
33: /**
34: * Constructs a new <code>VelocityEmailException</code> without specified
35: * detail message.
36: */
37: public VelocityEmailException() {
38: }
39:
40: /**
41: * Constructs a new <code>VelocityEmailException</code> with specified
42: * detail message.
43: *
44: * @param msg The error message.
45: */
46: public VelocityEmailException(String msg) {
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: super (nested);
59: }
60:
61: /**
62: * Constructs a new <code>VelocityEmailException</code> with specified
63: * detail message and nested <code>Throwable</code>.
64: *
65: * @param msg The error message.
66: * @param nested The exception or error that caused this exception
67: * to be thrown.
68: */
69: public VelocityEmailException(String msg, Throwable nested) {
70: super(msg, nested);
71: }
72: }
|