1 |
dl |
1.2 |
/* |
2 |
|
|
* Written by Doug Lea with assistance from members of JCP JSR-166 |
3 |
|
|
* Expert Group and released to the public domain. Use, modify, and |
4 |
|
|
* redistribute this code in any way without acknowledgement. |
5 |
|
|
*/ |
6 |
|
|
|
7 |
tim |
1.1 |
package java.util.concurrent; |
8 |
|
|
|
9 |
|
|
/** |
10 |
|
|
* Exception thrown when a thread tries to wait upon a barrier that is |
11 |
|
|
* in a broken state, or which enters the broken state while the thread |
12 |
|
|
* is waiting. |
13 |
|
|
* |
14 |
|
|
* @see CyclicBarrier |
15 |
|
|
* |
16 |
|
|
* @since 1.5 |
17 |
|
|
* @spec JSR-166 |
18 |
dl |
1.3 |
* @revised $Date: 2003/05/27 18:14:39 $ |
19 |
|
|
* @editor $Author: dl $ |
20 |
|
|
* @author Doug Lea |
21 |
tim |
1.1 |
* |
22 |
|
|
*/ |
23 |
|
|
public class BrokenBarrierException extends Exception { |
24 |
|
|
/** |
25 |
|
|
* Constructs a <tt>BrokenBarrierException</tt> with no specified detail |
26 |
|
|
* message. |
27 |
|
|
*/ |
28 |
|
|
public BrokenBarrierException() {} |
29 |
|
|
|
30 |
|
|
/** |
31 |
|
|
* Constructs a <tt>BrokenBarrierException</tt> with the specified |
32 |
|
|
* detail message. |
33 |
|
|
* |
34 |
|
|
* @param message the detail message |
35 |
|
|
*/ |
36 |
|
|
public BrokenBarrierException(String message) { |
37 |
|
|
super(message); |
38 |
|
|
} |
39 |
|
|
} |