added exceptions
flavien's git/Projet_JAVA_P2P_STRI2A/pipeline/head There was a failure building this commit Details

pull/32/head
Flavien Haas 5 years ago
parent 0a04e7f28f
commit 9bcdfaa602

@ -34,6 +34,7 @@ import protocolP2P.HashResponse;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import clientP2P.ClientDownloadTCP;
import exception.SocketClosed;
/** Implementation of P2P-JAVA-PROJECT CLIENT
* @author Louis Royer
@ -176,6 +177,9 @@ public class ClientManagementTCP implements Runnable {
throw new ProtocolError();
} catch (EmptyFile e) {
throw new ProtocolError();
} catch (SocketClosed e){
System.err.println("listDirectory : SocketClosed");
throw new ProtocolError();
}
}

Loading…
Cancel
Save