Top Description Fields Constructors
org.apache.commons.lang3.concurrent

public Class ConcurrentException

extends Exception
Class Inheritance
Imports
java.util.concurrent.ExecutionException

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 to ExecutionException, it wraps only checked exceptions. Runtime exceptions are thrown directly.

Since
3.0

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
protected
ConcurrentException()

Creates a new, uninitialized instance of ConcurrentException.

public
ConcurrentException(final String
the detail message. The detail message is saved for later retrieval by the getMessage() method.
message
)

Constructs a new exception with the specified detail message.

public
ConcurrentException(final String
the error message
msg
,
final Throwable
the cause of this exception
cause
)

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

public
ConcurrentException(final Throwable
the cause of this exception
cause
)

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

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.Exception.serialVersionUID.

The serial version UID.

Constructor Detail

ConcurrentExceptionback to summary
protected ConcurrentException()

Creates a new, uninitialized instance of ConcurrentException.

ConcurrentExceptionback to summary
public ConcurrentException(final String message)

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:String

the detail message. The detail message is saved for later retrieval by the getMessage() method.

Since
3.19.0
ConcurrentExceptionback to summary
public ConcurrentException(final String msg, final Throwable cause)

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

Parameters
msg:String

the error message

cause:Throwable

the cause of this exception

Exceptions
IllegalArgumentException:
if the cause is not a checked exception
ConcurrentExceptionback to summary
public ConcurrentException(final Throwable cause)

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

Parameters
cause:Throwable

the cause of this exception

Exceptions
IllegalArgumentException:
if the cause is not a checked exception