1 21 22 27 28 package com.sun.mail.smtp; 29 30 import javax.mail.Address ; 31 import javax.mail.SendFailedException ; 32 import javax.mail.internet.InternetAddress ; 33 34 46 47 public class SMTPSendFailedException extends SendFailedException { 48 protected InternetAddress addr; protected String cmd; protected int rc; 52 private static final long serialVersionUID = 8049122628728932894L; 53 54 62 public SMTPSendFailedException(String cmd, int rc, String err, Exception ex, 63 Address [] vs, Address [] vus, Address [] inv) { 64 super(err, ex, vs, vus, inv); 65 this.cmd = cmd; 66 this.rc = rc; 67 } 68 69 72 public String getCommand() { 73 return cmd; 74 } 75 76 82 public int getReturnCode() { 83 return rc; 84 } 85 } 86 | Popular Tags |