* @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.
/* TODO - return error? */
return;
}
- Reply reply = command.execute(parameters, data, AccessType.values()[accessType]);
try {
+ Reply reply = command.execute(parameters, data, AccessType.values()[accessType]);
SimpleFieldSet replyParameters = reply.getReplyParameters();
replyParameters.putOverwrite("Identifier", identifier);
if (reply.hasData()) {
} else {
pluginReplySender.send(replyParameters);
}
+ } catch (FcpException fe1) {
+ /* TODO - log, report */
} catch (PluginNotFoundException pnfe1) {
/* TODO - log */
}