Author: toad
Date: 2006-01-23 23:48:08 +0000 (Mon, 23 Jan 2006)
New Revision: 7907

Removed:
   branches/async-client/src/freenet/node/fcp/FetchErrorMessage.java
Log:
delete FetchErrorMessage in branch, was missed by merge.

Deleted: branches/async-client/src/freenet/node/fcp/FetchErrorMessage.java
===================================================================
--- branches/async-client/src/freenet/node/fcp/FetchErrorMessage.java   
2006-01-23 23:39:11 UTC (rev 7906)
+++ branches/async-client/src/freenet/node/fcp/FetchErrorMessage.java   
2006-01-23 23:48:08 UTC (rev 7907)
@@ -1,45 +0,0 @@
-package freenet.node.fcp;
-
-import freenet.client.FailureCodeTracker;
-import freenet.client.FetchException;
-import freenet.node.Node;
-import freenet.support.SimpleFieldSet;
-
-public class FetchErrorMessage extends FCPMessage {
-
-       final int code;
-       final String codeDescription;
-       final String extraDescription;
-       final FailureCodeTracker tracker;
-       final boolean isFatal;
-       
-       public FetchErrorMessage(FCPConnectionHandler handler, FetchException 
e, String identifier) {
-               this.tracker = e.errorCodes;
-               this.code = e.mode;
-               this.codeDescription = FetchException.getMessage(code);
-               this.extraDescription = e.extraMessage;
-               this.isFatal = e.isFatal();
-       }
-
-       public SimpleFieldSet getFieldSet() {
-               SimpleFieldSet sfs = new SimpleFieldSet();
-               sfs.put("Code", Integer.toHexString(code));
-               sfs.put("CodeDescription", codeDescription);
-               if(extraDescription != null)
-                       sfs.put("ExtraDescription", extraDescription);
-               sfs.put("Fatal", Boolean.toString(isFatal));
-               if(tracker != null) {
-                       tracker.copyToFieldSet(sfs, "Errors.");
-               }
-               return sfs;
-       }
-
-       public String getName() {
-               return "FetchError";
-       }
-
-       public void run(FCPConnectionHandler handler, Node node) throws 
MessageInvalidException {
-               throw new 
MessageInvalidException(ProtocolErrorMessage.INVALID_MESSAGE, "FetchError goes 
from server to client not the other way around");
-       }
-
-}


Reply via email to