Package freenet.io.comm

Examples of freenet.io.comm.RetrievalException


      try {
        sendAborted(_prb._abortReason, _prb._abortDescription);
      } catch (NotConnectedException e) {
        // Ignore at this point.
      }
      callback.blockReceiveFailed(new RetrievalException(reason, description));
    } else {
      Logger.error(this, "Succeeded in complete("+reason+","+description+") on "+this, new Exception("error"));
      callback.blockReceived(block);
    }
    decRunningBlockReceives();
View Full Code Here


          callback.blockReceived(_prb.getBlock());
          return;
        } catch (AbortedException e1) {
          e = e1;
        }
        callback.blockReceiveFailed(new RetrievalException(_prb._abortReason, _prb._abortDescription));
        return;
      }
    }
    incRunningBlockReceives();
    try {
      waitNotification(false);
    } catch (DisconnectedException e) {
      RetrievalException retrievalException = new RetrievalException(RetrievalException.SENDER_DISCONNECTED);
      _prb.abort(retrievalException.getReason(), retrievalException.toString(), true /* kind of, it shouldn't count towards the stats anyway */);
      callback.blockReceiveFailed(retrievalException);
      decRunningBlockReceives();
    } catch(RuntimeException e) {
      decRunningBlockReceives();
      throw e;
View Full Code Here

TOP

Related Classes of freenet.io.comm.RetrievalException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.