Class ConcurrentException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.apache.commons.lang3.concurrent.ConcurrentException
-
- All Implemented Interfaces:
java.io.Serializable
public class ConcurrentException extends java.lang.Exception
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
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
The serial version UID.
-
Constructor Summary
Constructors Modifier Constructor Description protected
ConcurrentException()
Creates a new, uninitialized instance ofConcurrentException
.ConcurrentException(java.lang.String msg, java.lang.Throwable cause)
Creates a new instance ofConcurrentException
and initializes it with the given message and cause.ConcurrentException(java.lang.Throwable cause)
Creates a new instance ofConcurrentException
and initializes it with the given cause.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
The serial version UID.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ConcurrentException
protected ConcurrentException()
Creates a new, uninitialized instance ofConcurrentException
.
-
ConcurrentException
public ConcurrentException(java.lang.Throwable cause)
Creates a new instance ofConcurrentException
and initializes it with the given cause.- Parameters:
cause
- the cause of this exception- Throws:
java.lang.IllegalArgumentException
- if the cause is not a checked exception
-
ConcurrentException
public ConcurrentException(java.lang.String msg, java.lang.Throwable cause)
Creates a new instance ofConcurrentException
and initializes it with the given message and cause.- Parameters:
msg
- the error messagecause
- the cause of this exception- Throws:
java.lang.IllegalArgumentException
- if the cause is not a checked exception
-
-