Add a bare-bones implementation of SMTP.
[cfb.git] / prod / net / jaekl / qd / util / MailException.java
1 package net.jaekl.qd.util;
2
3 import net.jaekl.qd.QDException;
4
5 public class MailException extends QDException {
6         private static final long serialVersionUID = 1L;
7
8         public MailException(String msg) {
9                 super(msg);
10         }
11         
12         public MailException(String cmd, String expected, String actual) {
13                 super("Server responded to \"" + cmd + "\" with \"" + actual + "\", but I was expecting \"" + expected + "\".");
14         }
15
16         public MailException(Throwable cause) {
17                 super(cause);
18         }
19 }