Allow a command to throw an exception.
[Sone.git] / src / main / java / net / pterodactylus / sone / freenet / fcp / Command.java
index a4284aa..07fb7a4 100644 (file)
@@ -39,8 +39,10 @@ public interface Command {
         * @param accessType
         *            The access type
         * @return A reply to send back to the plugin
+        * @throws FcpException
+        *             if an error processing the parameters occurs
         */
-       public Reply execute(SimpleFieldSet parameters, Bucket data, AccessType accessType);
+       public Reply execute(SimpleFieldSet parameters, Bucket data, AccessType accessType) throws FcpException;
 
        /**
         * The access type of the request.