X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fibex%2Fmail%2FMailException.java;h=fe3e6b619f629bf4b2196a659bdbce37dbe4857b;hb=0f443a19e9225273f117a825dd3dd9047731662d;hp=b86904207955a4df2d46ff2cf0abc1142fb931df;hpb=65846109db6d650c6cd00775df5c03c54e7f86c1;p=org.ibex.mail.git diff --git a/src/org/ibex/mail/MailException.java b/src/org/ibex/mail/MailException.java index b869042..fe3e6b6 100644 --- 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 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 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); } } }