+++ /dev/null
-/*
- * jSite2 - FcpException.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.util.fcp;
-
-/**
- * TODO
- *
- * @author David ‘Bombe’ Roden <bombe@freenetproject.org>
- * @version $Id$
- */
-public class FcpException extends Exception {
-
- public FcpException() {
- }
-
- public FcpException(String message) {
- super(message);
- }
-
- public FcpException(Throwable cause) {
- super(cause);
- }
-
- public FcpException(String message, Throwable cause) {
- super(message, cause);
- }
-
-}
+++ /dev/null
-/*
- * jSite2 - FcpProtocolException.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.util.fcp;
-
-/**
- * TODO
- *
- * @author David ‘Bombe’ Roden <bombe@freenetproject.org>
- * @version $Id$
- */
-public class FcpProtocolException extends FcpException {
-
- private final int code;
- private final boolean fatal;
- private final boolean global;
-
- private String codeDescription;
- private String extraDescription;
- private String identifier;
-
- public FcpProtocolException(int code, boolean fatal, boolean global) {
- this.code = code;
- this.fatal = fatal;
- this.global = global;
- }
-
- /**
- * TODO
- *
- * @return the code
- */
- int getCode() {
- return code;
- }
-
- /**
- * TODO
- *
- * @return the fatal
- */
- boolean isFatal() {
- return fatal;
- }
-
- /**
- * TODO
- *
- * @return the global
- */
- boolean isGlobal() {
- return global;
- }
-
- /**
- * TODO
- *
- * @return the codeDescription
- */
- String getCodeDescription() {
- return codeDescription;
- }
-
- /**
- * TODO
- *
- * @param codeDescription
- * the codeDescription to set
- */
- void setCodeDescription(String codeDescription) {
- this.codeDescription = codeDescription;
- }
-
- /**
- * TODO
- *
- * @return the extraDescription
- */
- String getExtraDescription() {
- return extraDescription;
- }
-
- /**
- * TODO
- *
- * @param extraDescription
- * the extraDescription to set
- */
- void setExtraDescription(String extraDescription) {
- this.extraDescription = extraDescription;
- }
-
- /**
- * TODO
- *
- * @return the identifier
- */
- String getIdentifier() {
- return identifier;
- }
-
- /**
- * TODO
- *
- * @param identifier
- * the identifier to set
- */
- void setIdentifier(String identifier) {
- this.identifier = identifier;
- }
-
-}
* Tests the FCP connection be simply {@link #setUp() setting it up} and
* {@link #tearDown() tearing it down} again.
*
- * @throws FcpException
- * if an FCP error occurs
* @throws IOException
* if an I/O error occurs
*/
- public void testFcpConnection() throws FcpException, IOException {
+ public void testFcpConnection() throws IOException {
/* do nothing. */
}
/**
* Generates an SSK key pair.
*
- * @throws FcpException
- * if an FCP error occurs
* @throws IOException
* if an I/O error occurs
* @throws InterruptedException
* if {@link Object#wait()} wakes up spuriously
*/
- public void testGenerateSSK() throws IOException, FcpException, InterruptedException {
+ public void testGenerateSSK() throws IOException, InterruptedException {
final boolean[] result = new boolean[1];
FcpAdapter fcpAdapter = new FcpAdapter() {
/**