2008-11-01 17:32:06 -04:00
|
|
|
|
2009-12-14 21:50:53 -05:00
|
|
|
package com.fsck.k9.mail;
|
2008-11-01 17:32:06 -04:00
|
|
|
|
2011-02-06 17:09:48 -05:00
|
|
|
public class MessagingException extends Exception {
|
2008-11-01 17:32:06 -04:00
|
|
|
public static final long serialVersionUID = -1;
|
2009-11-24 19:40:29 -05:00
|
|
|
|
2009-04-10 22:11:17 -04:00
|
|
|
boolean permanentFailure = false;
|
2009-11-24 19:40:29 -05:00
|
|
|
|
2011-02-06 17:09:48 -05:00
|
|
|
public MessagingException(String message) {
|
2008-11-01 17:32:06 -04:00
|
|
|
super(message);
|
|
|
|
}
|
2009-11-24 19:40:29 -05:00
|
|
|
|
2011-02-06 17:09:48 -05:00
|
|
|
public MessagingException(String message, boolean perm) {
|
2009-10-21 20:41:06 -04:00
|
|
|
super(message);
|
|
|
|
permanentFailure = perm;
|
|
|
|
}
|
2008-11-01 17:32:06 -04:00
|
|
|
|
2011-02-06 17:09:48 -05:00
|
|
|
public MessagingException(String message, Throwable throwable) {
|
2008-11-01 17:32:06 -04:00
|
|
|
super(message, throwable);
|
|
|
|
}
|
2009-11-24 19:40:29 -05:00
|
|
|
|
2011-02-06 17:09:48 -05:00
|
|
|
public MessagingException(String message, boolean perm, Throwable throwable) {
|
2009-10-21 20:41:06 -04:00
|
|
|
super(message, throwable);
|
|
|
|
permanentFailure = perm;
|
|
|
|
}
|
2009-04-10 22:11:17 -04:00
|
|
|
|
2011-02-06 17:09:48 -05:00
|
|
|
public boolean isPermanentFailure() {
|
2009-11-24 19:40:29 -05:00
|
|
|
return permanentFailure;
|
2009-04-10 22:11:17 -04:00
|
|
|
}
|
|
|
|
|
2011-02-06 17:09:48 -05:00
|
|
|
public void setPermanentFailure(boolean permanentFailure) {
|
2009-11-24 19:40:29 -05:00
|
|
|
this.permanentFailure = permanentFailure;
|
2009-04-10 22:11:17 -04:00
|
|
|
}
|
2009-11-24 19:40:29 -05:00
|
|
|
|
|
|
|
|
2008-11-01 17:32:06 -04:00
|
|
|
}
|