01: /*
02: * Written by Doug Lea with assistance from members of JCP JSR-166
03: * Expert Group and released to the public domain, as explained at
04: * http://creativecommons.org/licenses/publicdomain
05: */
06:
07: package java.util.concurrent;
08:
09: /**
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: * @author Doug Lea
18: *
19: */
20: public class BrokenBarrierException extends Exception {
21: private static final long serialVersionUID = 7117394618823254244L;
22:
23: /**
24: * Constructs a <tt>BrokenBarrierException</tt> with no specified detail
25: * message.
26: */
27: public BrokenBarrierException() {
28: }
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: }
|