1 |
tim |
1.1 |
package java.util.concurrent; |
2 |
|
|
|
3 |
|
|
/** |
4 |
|
|
* Exception thrown when a thread tries to wait upon a barrier that is |
5 |
|
|
* in a broken state, or which enters the broken state while the thread |
6 |
|
|
* is waiting. |
7 |
|
|
* |
8 |
|
|
* @see CyclicBarrier |
9 |
|
|
* |
10 |
|
|
* @since 1.5 |
11 |
|
|
* @spec JSR-166 |
12 |
|
|
* @revised $Date: 2003/01/31 00:13:35 $ |
13 |
|
|
* @editor $Author: tim $ |
14 |
|
|
* |
15 |
|
|
*/ |
16 |
|
|
public class BrokenBarrierException extends Exception { |
17 |
|
|
/** |
18 |
|
|
* Constructs a <tt>BrokenBarrierException</tt> with no specified detail |
19 |
|
|
* message. |
20 |
|
|
*/ |
21 |
|
|
public BrokenBarrierException() {} |
22 |
|
|
|
23 |
|
|
/** |
24 |
|
|
* Constructs a <tt>BrokenBarrierException</tt> with the specified |
25 |
|
|
* detail message. |
26 |
|
|
* |
27 |
|
|
* @param message the detail message |
28 |
|
|
*/ |
29 |
|
|
public BrokenBarrierException(String message) { |
30 |
|
|
super(message); |
31 |
|
|
} |
32 |
|
|
} |