From 10afee01807213bbe00732a6617ba8ce77367c28 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 15 May 2008 14:01:23 +0000 Subject: [PATCH] add no-node exception git-svn-id: http://trooper/svn/projects/jSite/trunk@888 c3eda9e8-030b-0410-8277-bc7414b0a119 --- .../pterodactylus/jsite/core/NoNodeException.java | 71 ++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 src/net/pterodactylus/jsite/core/NoNodeException.java diff --git a/src/net/pterodactylus/jsite/core/NoNodeException.java b/src/net/pterodactylus/jsite/core/NoNodeException.java new file mode 100644 index 0000000..b210576 --- /dev/null +++ b/src/net/pterodactylus/jsite/core/NoNodeException.java @@ -0,0 +1,71 @@ +/* + * jSite2 - NoNodeException.java + * Copyright © 2008 David Roden + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + +package net.pterodactylus.jsite.core; + +/** + * Exception that signals the lack of configured nodes that are required for the + * action. + * + * @see NodeManager#generateKeyPair() + * @author David ‘Bombe’ Roden <bombe@freenetproject.org> + * @version $Id$ + */ +public class NoNodeException extends JSiteException { + + /** + * Creates a new exception. + */ + public NoNodeException() { + super(); + } + + /** + * Creates a new exception with the given message. + * + * @param message + * The message of the exception + */ + public NoNodeException(String message) { + super(message); + } + + /** + * Creates a new exception with the given cause. + * + * @param cause + * The cause of the exception + */ + public NoNodeException(Throwable cause) { + super(cause); + } + + /** + * Creates a new exception with the given message and cause. + * + * @param message + * The message of the exception + * @param cause + * The cause of the exception + */ + public NoNodeException(String message, Throwable cause) { + super(message, cause); + } + +} -- 2.7.4