From: adam Date: Fri, 7 Jan 2005 18:18:53 +0000 (+0000) Subject: added error codes to NNTP exceptions X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=4010840fe189cebf823f456ed438511cbda52713;p=org.ibex.mail.git added error codes to NNTP exceptions darcs-hash:20050107181853-5007d-f495ac731db58ba3de19893d8535c8dbb659dff0.gz --- diff --git a/src/org/ibex/mail/protocol/NNTP.java b/src/org/ibex/mail/protocol/NNTP.java index 87e968d..2be4c8c 100644 --- a/src/org/ibex/mail/protocol/NNTP.java +++ b/src/org/ibex/mail/protocol/NNTP.java @@ -18,8 +18,8 @@ public class NNTP { // FIXME: command lines limited to 512 chars - public static class No extends RuntimeException { int code = 0; } // 4xx response codes - public static class Bad extends RuntimeException { int code = 0; } // 5xx response codes + public static class No extends RuntimeException { int code = 400; } // 4xx response codes + public static class Bad extends RuntimeException { int code = 500; public Bad(String s) { super(s); } } // 5xx response codes public static class Group { public Group(String n, boolean p, int f, int l, int c) { this.name=n;this.post=p;this.first=f;this.last=l;this.count=c;}