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