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

public Class ConcurrentRuntimeException

extends RuntimeException
Class Inheritance

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

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
protected
ConcurrentRuntimeException()

Creates a new, uninitialized instance of ConcurrentRuntimeException.

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

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

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

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

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.RuntimeException.serialVersionUID.

The serial version UID.

Constructor Detail

ConcurrentRuntimeExceptionback to summary
protected ConcurrentRuntimeException()

Creates a new, uninitialized instance of ConcurrentRuntimeException.

ConcurrentRuntimeExceptionback to summary
public ConcurrentRuntimeException(final String msg, final Throwable cause)

Creates a new instance of ConcurrentRuntimeException 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
ConcurrentRuntimeExceptionback to summary
public ConcurrentRuntimeException(final Throwable cause)

Creates a new instance of ConcurrentRuntimeException 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