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
ecb007584a
commit
cc16ccf317
@ -29,6 +29,7 @@ import java.io.File;
|
||||
import java.nio.file.Paths;
|
||||
import java.nio.file.StandardOpenOption;
|
||||
import java.nio.file.StandardCopyOption;
|
||||
import exception.SocketClosed;
|
||||
|
||||
/** Class to download file from tcp
|
||||
* @author Louis Royer
|
||||
@ -216,6 +217,8 @@ public class ClientDownloadTCP implements Runnable {
|
||||
return hash;
|
||||
} catch (IOException e) {
|
||||
throw new InternalError();
|
||||
} catch (SocketClosed e){
|
||||
system.err.println("getHashSum512 : SocketClosed");
|
||||
}
|
||||
}
|
||||
|
||||
@ -336,6 +339,8 @@ public class ClientDownloadTCP implements Runnable {
|
||||
}
|
||||
} catch (IOException e) {
|
||||
throw new InternalError();
|
||||
} catch (SocketClosed e){
|
||||
system.err.println("setSize : SocketClosed");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user