From: Jérôme Benoit Date: Tue, 13 Mar 2018 23:54:41 +0000 (+0100) Subject: TD2: Be more informative at exception catching. X-Git-Url: https://git.piment-noir.org/?p=TD_SR.git;a=commitdiff_plain;h=8c3c3f613303ed9670d122cf1aa6f1fc89e8223b TD2: Be more informative at exception catching. Signed-off-by: Jérôme Benoit --- diff --git a/TD2/client/ClientSimplifie.java b/TD2/client/ClientSimplifie.java index b676c65..1701ecd 100644 --- a/TD2/client/ClientSimplifie.java +++ b/TD2/client/ClientSimplifie.java @@ -16,6 +16,7 @@ public class ClientSimplifie { } catch (IOException e) { System.err.println("IOException: " + e); + e.printStackTrace(); closeRWIO(); } } @@ -29,6 +30,7 @@ public class ClientSimplifie { } catch (IOException e) { System.err.println("IOException: " + e); + e.printStackTrace(); closeRWIO(); } } @@ -87,6 +89,7 @@ public class ClientSimplifie { } catch (IOException e) { System.err.println("IOException: " + e); + e.printStackTrace(); } } diff --git a/TD2/client/SocketClient.java b/TD2/client/SocketClient.java index 3c6d021..75c0470 100644 --- a/TD2/client/SocketClient.java +++ b/TD2/client/SocketClient.java @@ -18,6 +18,7 @@ public class SocketClient { } catch (IOException e) { System.err.println("IOException: " + e); + e.printStackTrace(); closeRWIO(); } } @@ -31,6 +32,7 @@ public class SocketClient { } catch (IOException e) { System.err.println("IOException: " + e); + e.printStackTrace(); closeRWIO(); } } @@ -115,6 +117,7 @@ public class SocketClient { } catch (IOException e) { System.err.println("IOException: " + e); + e.printStackTrace(); } } diff --git a/TD2/client/ThreadClientSend.java b/TD2/client/ThreadClientSend.java index 33a8461..399cfd3 100644 --- a/TD2/client/ThreadClientSend.java +++ b/TD2/client/ThreadClientSend.java @@ -32,6 +32,7 @@ public class ThreadClientSend implements Runnable { } catch (IOException e) { System.err.println("IOException: " + e); + e.printStackTrace(); } } } diff --git a/TD2/client/ThreadClientoSend.java b/TD2/client/ThreadClientoSend.java index dd8d03b..d6462a7 100644 --- a/TD2/client/ThreadClientoSend.java +++ b/TD2/client/ThreadClientoSend.java @@ -55,6 +55,7 @@ public class ThreadClientoSend implements Runnable { } catch (IOException e) { System.err.println("IOException: " + e); + e.printStackTrace(); } } }