projects
/
org.ibex.mail.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
be more careful about closing ResultSets in Graylist
[org.ibex.mail.git]
/
src
/
org
/
ibex
/
mail
/
MailException.java
diff --git
a/src/org/ibex/mail/MailException.java
b/src/org/ibex/mail/MailException.java
index
b869042
..
fe3e6b6
100644
(file)
--- a/
src/org/ibex/mail/MailException.java
+++ b/
src/org/ibex/mail/MailException.java
@@
-1,12
+1,17
@@
+// Copyright 2000-2005 the Contributors, as shown in the revision logs.
+// Licensed under the Apache Public Source License 2.0 ("the License").
+// You may not use this file except in compliance with the License.
-public class MailException extends Exception {
+package org.ibex.mail;
+import java.net.*;
+import java.io.*;
+public class MailException extends RuntimeException {
+ public MailException() { }
+ public MailException(String s) { super(s); }
public static class MailboxFull extends MailException { }
public static class MailboxFull extends MailException { }
+ public static class MetadataNotSupported extends MailException { public MetadataNotSupported(String s) { super(s); } }
+ public static class Malformed extends MailException { public Malformed(String s) { super(s); } }
public static class RelayingDenied extends MailException { }
public static class RelayingDenied extends MailException { }
- public static class IOException extends MailException {
- // FIXME: fill in stack trace
- final IOException ioe;
- public IOException(java.io.IOException ioe) { this.ioe = ioe; }
- }
-
+ public static class IOException extends MailException { public IOException(java.io.IOException ioe) { initCause(ioe); } }
}
}