From 8c3c3f613303ed9670d122cf1aa6f1fc89e8223b Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Wed, 14 Mar 2018 00:54:41 +0100 Subject: [PATCH] TD2: Be more informative at exception catching. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- TD2/client/ClientSimplifie.java | 3 +++ TD2/client/SocketClient.java | 3 +++ TD2/client/ThreadClientSend.java | 1 + TD2/client/ThreadClientoSend.java | 1 + 4 files changed, 8 insertions(+) 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(); } } } -- 2.34.1