repositories
/
TD_SR.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Better exception handling.
[TD_SR.git]
/
TD1
/
exo3
/
Consommateur.java
diff --git
a/TD1/exo3/Consommateur.java
b/TD1/exo3/Consommateur.java
index 480134976bcecd810a20ae7db3fdfbdfc4fb0eb4..43c811ab6895e80e7f1cfac5dc092aeadadc04c3 100644
(file)
--- a/
TD1/exo3/Consommateur.java
+++ b/
TD1/exo3/Consommateur.java
@@
-26,7
+26,9
@@
public class Consommateur implements Runnable {
try {
Thread.sleep(ThreadLocalRandom.current().nextInt(1001));
}
- catch (InterruptedException e) {}
+ catch (InterruptedException e) {
+ System.out.println("InterruptedException: " + e);
+ }
}
}