Author: toad
Date: 2009-02-24 19:20:15 +0000 (Tue, 24 Feb 2009)
New Revision: 25791

Modified:
   branches/db4o/freenet/src/freenet/client/async/SingleBlockInserter.java
Log:
SSK/CHKEncodeException -> KeyEncodeException


Modified: 
branches/db4o/freenet/src/freenet/client/async/SingleBlockInserter.java
===================================================================
--- branches/db4o/freenet/src/freenet/client/async/SingleBlockInserter.java     
2009-02-24 18:58:56 UTC (rev 25790)
+++ branches/db4o/freenet/src/freenet/client/async/SingleBlockInserter.java     
2009-02-24 19:20:15 UTC (rev 25791)
@@ -20,6 +20,7 @@
 import freenet.keys.ClientKeyBlock;
 import freenet.keys.FreenetURI;
 import freenet.keys.InsertableClientSSK;
+import freenet.keys.KeyEncodeException;
 import freenet.keys.SSKEncodeException;
 import freenet.node.KeysFetchingLocally;
 import freenet.node.LowLevelPutException;
@@ -119,7 +120,7 @@
                }
                try {
                        return innerEncode(random, uri, sourceData, isMetadata, 
compressionCodec, sourceLength);
-               } catch (CHKEncodeException e) {
+               } catch (KeyEncodeException e) {
                        Logger.error(SingleBlockInserter.class, "Caught "+e, e);
                        throw new 
InsertException(InsertException.INTERNAL_ERROR, e, null);
                } catch (MalformedURLException e) {
@@ -127,9 +128,6 @@
                } catch (IOException e) {
                        Logger.error(SingleBlockInserter.class, "Caught "+e+" 
encoding data "+sourceData, e);
                        throw new InsertException(InsertException.BUCKET_ERROR, 
e, null);
-               } catch (SSKEncodeException e) {
-                       Logger.error(SingleBlockInserter.class, "Caught "+e, e);
-                       throw new 
InsertException(InsertException.INTERNAL_ERROR, e, null);
                }
                        
        }

_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to