From 4010840fe189cebf823f456ed438511cbda52713 Mon Sep 17 00:00:00 2001 From: adam Date: Fri, 7 Jan 2005 18:18:53 +0000 Subject: [PATCH] added error codes to NNTP exceptions darcs-hash:20050107181853-5007d-f495ac731db58ba3de19893d8535c8dbb659dff0.gz --- src/org/ibex/mail/protocol/NNTP.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;} -- 1.7.10.4