1 36 package org.columba.ristretto.pop3; 37 38 44 public class POP3Exception extends Exception { 45 46 49 private static final long serialVersionUID = 1L; 50 private POP3Response response; 51 52 56 public POP3Exception(POP3Response newParam) { 57 super(); 58 this.response = newParam; 59 } 60 61 64 public POP3Exception(String message) { 65 super(message); 66 } 67 68 71 public POP3Exception(Throwable cause) { 72 super(cause); 73 } 74 75 79 public POP3Exception(String message, Throwable cause) { 80 super(message, cause); 81 } 82 83 86 public POP3Response getResponse() { 87 return response; 88 } 89 92 public String getMessage() { 93 if( response != null) return response.getMessage(); 94 else return super.getMessage(); 95 } 96 } 97 | Popular Tags |