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
/
Producteur.java
diff --git
a/TD1/exo3/Producteur.java
b/TD1/exo3/Producteur.java
index 47a402180d5f8c9a6fa4854bc4b3b03f76c97858..f3cc123ac18ba582eba727a017023a0e29b176ee 100644
(file)
--- a/
TD1/exo3/Producteur.java
+++ b/
TD1/exo3/Producteur.java
@@
-28,7
+28,9
@@
public class Producteur implements Runnable {
try {
Thread.sleep(ThreadLocalRandom.current().nextInt(101));
}
- catch (InterruptedException e) {}
+ catch (InterruptedException e) {
+ System.out.println("InterruptedException: " + e);
+ }
}
}