ConcurrentException
- public class org.apache.commons.lang3.concurrent.ConcurrentException extends Exception[source]
An exception class used for reporting error conditions related to accessing data of background tasks.
The purpose of this exception class is analogous to the default JDK exception class
ExecutionException, i.e. it wraps an exception that occurred during the execution of a task. However, in contrast toExecutionException, it wraps only checked exceptions. Runtime exceptions are thrown directly.- Since:
3.0
Constructors
Creates a new, uninitialized instance of |
|
Constructs a new exception with the specified detail message. |
|
Creates a new instance of |
|
Creates a new instance of |
- protected ConcurrentException()[source]
Creates a new, uninitialized instance of
ConcurrentException.
- public ConcurrentException(String message)[source]
Constructs a new exception with the specified detail message. The cause is not initialized, and may subsequently be initialized by a call to
#initCause.- Parameters:
message – The detail message. The detail message is saved for later retrieval by the
#getMessage()method.- Since:
3.19.0
- public ConcurrentException(String msg, Throwable cause)[source]
Creates a new instance of
ConcurrentExceptionand 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 ConcurrentException(Throwable cause)[source]
Creates a new instance of
ConcurrentExceptionand 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.