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