01: // kelondroException.java
02: // -----------------------
03: // (C) 2005 by Michael Peter Christen; mc@yacy.net, Frankfurt a. M., Germany
04: // first published 12.04.2005 on http://yacy.net
05: //
06: // This is a part of YaCy, a peer-to-peer based web search engine
07: //
08: // $LastChangedDate: 2006-04-02 22:40:07 +0200 (So, 02 Apr 2006) $
09: // $LastChangedRevision: 1986 $
10: // $LastChangedBy: orbiter $
11: //
12: // LICENSE
13: //
14: // This program is free software; you can redistribute it and/or modify
15: // it under the terms of the GNU General Public License as published by
16: // the Free Software Foundation; either version 2 of the License, or
17: // (at your option) any later version.
18: //
19: // This program is distributed in the hope that it will be useful,
20: // but WITHOUT ANY WARRANTY; without even the implied warranty of
21: // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22: // GNU General Public License for more details.
23: //
24: // You should have received a copy of the GNU General Public License
25: // along with this program; if not, write to the Free Software
26: // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
27:
28: package de.anomic.kelondro;
29:
30: public class kelondroException extends java.lang.RuntimeException {
31:
32: private static final long serialVersionUID = 1L;
33:
34: public kelondroException() {
35: super ("unspecific-error");
36: }
37:
38: public kelondroException(String message) {
39: super (message);
40: }
41:
42: public kelondroException(String database, String message) {
43: super (message + " in db '" + database + "'");
44: }
45:
46: }
|