X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fibex%2Fmail%2FMailException.java;h=fe3e6b619f629bf4b2196a659bdbce37dbe4857b;hb=4b76a31e8f86bc8de673899bbb45252c01e9a0f6;hp=1b789b7243623cf092c56a1e223c066eee4fc5b3;hpb=3492f56637223c93d748aef93888bc107e8e1252;p=org.ibex.mail.git diff --git a/src/org/ibex/mail/MailException.java b/src/org/ibex/mail/MailException.java index 1b789b7..fe3e6b6 100644 --- a/src/org/ibex/mail/MailException.java +++ b/src/org/ibex/mail/MailException.java @@ -1,18 +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. + package org.ibex.mail; import java.net.*; import java.io.*; -public class MailException extends Exception { - +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 java.io.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); } } }