1 36 package org.columba.ristretto.smtp; 37 38 39 44 public class SMTPException extends Exception  45 { 46 int code = -1; 47 48 51 private static final long serialVersionUID = 1L; 52 53 56 public SMTPException() 57 { 58 super(); 59 } 60 61 66 public SMTPException( String e ) 67 { 68 super(e); 69 } 70 71 76 public SMTPException(SMTPResponse response) { 77 super(response.getMessage()); 78 code = response.getCode(); 79 } 80 81 82 83 87 public SMTPException(String arg0, Throwable arg1) { 88 super(arg0, arg1); 89 } 90 91 94 public SMTPException(Throwable arg0) { 95 super(arg0); 96 } 97 98 101 public int getCode() { 102 return code; 103 } 104 105 } 106 | Popular Tags |