On this page

ConcurrentRuntimeException

public class org.apache.commons.lang3.concurrent.ConcurrentRuntimeException extends RuntimeException[source]

An exception class used for reporting runtime error conditions related to accessing data of background tasks.

This class is an analogue of the ConcurrentException exception class. However, it is a runtime exception and thus does not need explicit catch clauses. Some methods of ConcurrentUtils throw ConcurrentRuntimeException exceptions rather than ConcurrentException exceptions. They can be used by client code that does not want to be bothered with checked exceptions.

Since:

3.0

Constructors

ConcurrentRuntimeException()

Creates a new, uninitialized instance of ConcurrentRuntimeException.

ConcurrentRuntimeException(String, Throwable)

Creates a new instance of ConcurrentRuntimeException and initializes it with the given message and cause.

ConcurrentRuntimeException(Throwable)

Creates a new instance of ConcurrentRuntimeException and initializes it with the given cause.

protected ConcurrentRuntimeException()[source]

Creates a new, uninitialized instance of ConcurrentRuntimeException.

public ConcurrentRuntimeException(String msg, Throwable cause)[source]

Creates a new instance of ConcurrentRuntimeException and initializes it with the given message and cause.

Parameters:
  • msg – The error message

  • cause – The cause of this exception

Throws:

java.lang.IllegalArgumentException – Thrown if the cause is not a checked exception.

public ConcurrentRuntimeException(Throwable cause)[source]

Creates a new instance of ConcurrentRuntimeException and initializes it with the given cause.

Parameters:

cause – The cause of this exception

Throws:

java.lang.IllegalArgumentException – Thrown if the cause is not a checked exception.