001package org.apache.turbine.util.velocity;
002
003
004/*
005 * Licensed to the Apache Software Foundation (ASF) under one
006 * or more contributor license agreements.  See the NOTICE file
007 * distributed with this work for additional information
008 * regarding copyright ownership.  The ASF licenses this file
009 * to you under the Apache License, Version 2.0 (the
010 * "License"); you may not use this file except in compliance
011 * with the License.  You may obtain a copy of the License at
012 *
013 *   http://www.apache.org/licenses/LICENSE-2.0
014 *
015 * Unless required by applicable law or agreed to in writing,
016 * software distributed under the License is distributed on an
017 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
018 * KIND, either express or implied.  See the License for the
019 * specific language governing permissions and limitations
020 * under the License.
021 */
022
023
024import org.apache.turbine.util.TurbineException;
025
026/**
027 * This exception is thrown if a VelocityEmail/VelocityHtmlEmail can not be
028 * sent using JavaMail.  It will most likly wrap a javax.mail.MessagingException
029 * exception.
030 *
031 * @author <a href="mailto:epugh@upstate.com">Eric Pugh</a>
032 */
033public class VelocityEmailException extends TurbineException
034{
035    /** Serial version */
036    private static final long serialVersionUID = 4657494114757749486L;
037
038    /**
039     * Constructs a new <code>VelocityEmailException</code> without specified
040     * detail message.
041     */
042    public VelocityEmailException()
043    {
044        super();
045    }
046
047    /**
048     * Constructs a new <code>VelocityEmailException</code> with specified
049     * detail message.
050     *
051     * @param msg The error message.
052     */
053    public VelocityEmailException(String msg)
054    {
055        super(msg);
056    }
057
058    /**
059     * Constructs a new <code>VelocityEmailException</code> with specified
060     * nested <code>Throwable</code>.
061     *
062     * @param nested The exception or error that caused this exception
063     *               to be thrown.
064     */
065    public VelocityEmailException(Throwable nested)
066    {
067        super(nested);
068    }
069
070    /**
071     * Constructs a new <code>VelocityEmailException</code> with specified
072     * detail message and nested <code>Throwable</code>.
073     *
074     * @param msg    The error message.
075     * @param nested The exception or error that caused this exception
076     *               to be thrown.
077     */
078    public VelocityEmailException(String msg, Throwable nested)
079    {
080        super(msg, nested);
081    }
082}