The StorageBackendException is catched two times so that the user see the "500 internal server error" only at the second catch (probably fixes #5).
3 * see AUTHORS for the list of contributors
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 package org.sonews.storage;
22 * Contains header constants. These header keys are no way complete but all
23 * headers that are relevant for sonews.
24 * @author Christian Lins
27 public final class Headers
30 public static final String BYTES = "bytes";
31 public static final String CONTENT_TYPE = "content-type";
32 public static final String CONTROL = "control";
33 public static final String DATE = "date";
34 public static final String FROM = "from";
35 public static final String LINES = "lines";
36 public static final String LIST_POST = "list-post";
37 public static final String MESSAGE_ID = "message-id";
38 public static final String NEWSGROUPS = "newsgroups";
39 public static final String NNTP_POSTING_DATE = "nntp-posting-date";
40 public static final String NNTP_POSTING_HOST = "nntp-posting-host";
41 public static final String PATH = "path";
42 public static final String REFERENCES = "references";
43 public static final String REPLY_TO = "reply-to";
44 public static final String SENDER = "sender";
45 public static final String SUBJECT = "subject";
46 public static final String SUPERSEDES = "subersedes";
47 public static final String TO = "to";
48 public static final String X_COMPLAINTS_TO = "x-complaints-to";
49 public static final String X_LIST_POST = "x-list-post";
50 public static final String X_TRACE = "x-trace";
51 public static final String XREF = "xref";