View Javadoc
1 /* 2 * Copyright (C) The Apache Software Foundation. All rights reserved. 3 * 4 * This software is published under the terms of the Apache Software License 5 * version 1.1, a copy of which has been included with this distribution in 6 * the LICENSE file. 7 */ 8 package org.apache.mailet; 9 10 import javax.mail.MessagingException; 11 12 /*** 13 * Defines a general exception a mailet can throw when it encounters difficulty. 14 * 15 * @version 1.0.0, 24/04/1999 16 * @author Serge Knystautas <sergek@lokitech.com> 17 */ 18 public class MailetException extends MessagingException { 19 20 /*** 21 * Constructs a new mailet exception. 22 */ 23 public MailetException() { 24 super(); 25 } 26 27 /*** 28 * Constructs a new mailet exception with the specified message. 29 */ 30 public MailetException(String message) { 31 super(message); 32 } 33 34 /*** 35 * Constructs a new mailet exception when the mailet needs to throw 36 * an exception and include a message about the "root cause" exception 37 * that interfered with its normal operation, including a description 38 * message. 39 */ 40 public MailetException(String message, Exception e) { 41 super(message, e); 42 } 43 44 }

This page was automatically generated by Maven