BrokenBarrierException

  • BrokenBarrierException signals that a thread attempted to wait on a CyclicBarrier that is in a broken state.

  • This exception is thrown if the barrier is broken when the thread tries to wait, or if it breaks while the thread is waiting.

  • It inherits methods from Exception for handling and providing details about the exception.

  • Two constructors are available: one with no detail message and one that accepts a custom message.

public class BrokenBarrierException extends Exception

Exception thrown when a thread tries to wait upon a barrier that is in a broken state, or which enters the broken state while the thread is waiting.

See Also

Public Constructor Summary

BrokenBarrierException()
Constructs a BrokenBarrierException with no specified detail message.
BrokenBarrierException(String message)
Constructs a BrokenBarrierException with the specified detail message.

Inherited Method Summary

Public Constructors

public BrokenBarrierException ()

Constructs a BrokenBarrierException with no specified detail message.

public BrokenBarrierException (String message)

Constructs a BrokenBarrierException with the specified detail message.

Parameters
message the detail message