1 21 22 27 28 package javax.mail; 29 30 44 45 public class SendFailedException extends MessagingException { 46 transient protected Address [] invalid; 47 transient protected Address [] validSent; 48 transient protected Address [] validUnsent; 49 50 private static final long serialVersionUID = -6457531621682372913L; 51 52 55 public SendFailedException() { 56 super(); 57 } 58 59 63 public SendFailedException(String s) { 64 super(s); 65 } 66 67 76 public SendFailedException(String s, Exception e) { 77 super(s, e); 78 } 79 80 81 93 public SendFailedException(String msg, Exception ex, Address [] validSent, 94 Address [] validUnsent, Address [] invalid) { 95 super(msg, ex); 96 this.validSent = validSent; 97 this.validUnsent = validUnsent; 98 this.invalid = invalid; 99 } 100 101 105 public Address [] getValidSentAddresses() { 106 return validSent; 107 } 108 109 115 public Address [] getValidUnsentAddresses() { 116 return validUnsent; 117 } 118 119 124 public Address [] getInvalidAddresses() { 125 return invalid; 126 } 127 } 128 | Popular Tags |