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