1 21 22 27 28 package com.sun.mail.smtp; 29 30 import javax.mail.SendFailedException ; 31 import javax.mail.internet.InternetAddress ; 32 33 43 44 public class SMTPAddressFailedException extends SendFailedException { 45 protected InternetAddress addr; protected String cmd; protected int rc; 49 private static final long serialVersionUID = 804831199768630097L; 50 51 60 public SMTPAddressFailedException(InternetAddress addr, String cmd, int rc, 61 String err) { 62 super(err); 63 this.addr = addr; 64 this.cmd = cmd; 65 this.rc = rc; 66 } 67 68 71 public InternetAddress getAddress() { 72 return addr; 73 } 74 75 78 public String getCommand() { 79 return cmd; 80 } 81 82 83 89 public int getReturnCode() { 90 return rc; 91 } 92 } 93 | Popular Tags |