001 /**
002 *
003 * Copyright 2003-2006 The Apache Software Foundation
004 *
005 * Licensed under the Apache License, Version 2.0 (the "License");
006 * you may not use this file except in compliance with the License.
007 * You may obtain a copy of the License at
008 *
009 * http://www.apache.org/licenses/LICENSE-2.0
010 *
011 * Unless required by applicable law or agreed to in writing, software
012 * distributed under the License is distributed on an "AS IS" BASIS,
013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014 * See the License for the specific language governing permissions and
015 * limitations under the License.
016 */
017
018 package javax.mail;
019
020 /**
021 * @version $Rev: 421852 $ $Date: 2006-07-14 03:02:19 -0700 (Fri, 14 Jul 2006) $
022 */
023 public class SendFailedException extends MessagingException {
024 protected transient Address invalid[];
025 protected transient Address validSent[];
026 protected transient Address validUnsent[];
027
028 public SendFailedException() {
029 super();
030 }
031
032 public SendFailedException(String message) {
033 super(message);
034 }
035
036 public SendFailedException(String message, Exception cause) {
037 super(message, cause);
038 }
039
040 public SendFailedException(String message,
041 Exception cause,
042 Address[] validSent,
043 Address[] validUnsent,
044 Address[] invalid) {
045 this(message, cause);
046 this.invalid = invalid;
047 this.validSent = validSent;
048 this.validUnsent = validUnsent;
049 }
050
051 public Address[] getValidSentAddresses() {
052 return validSent;
053 }
054
055 public Address[] getValidUnsentAddresses() {
056 return validUnsent;
057 }
058
059 public Address[] getInvalidAddresses() {
060 return invalid;
061 }
062 }