added exceptions
Some checks failed
flavien's git/Projet_JAVA_P2P_STRI2A/pipeline/head There was a failure building this commit
Some checks failed
flavien's git/Projet_JAVA_P2P_STRI2A/pipeline/head There was a failure building this commit
This commit is contained in:
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…
Reference in New Issue
Block a user