Class ConcurrentRuntimeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apache.commons.lang3.concurrent.ConcurrentRuntimeException
-
- All Implemented Interfaces:
java.io.Serializable
public class ConcurrentRuntimeException extends java.lang.RuntimeExceptionAn exception class used for reporting runtime error conditions related to accessing data of background tasks.
This class is an analogue of the
ConcurrentExceptionexception class. However, it is a runtime exception and thus does not need explicit catch clauses. Some methods ofConcurrentUtilsthrowConcurrentRuntimeExceptionexceptions rather thanConcurrentExceptionexceptions. They can be used by client code that does not want to be bothered with checked exceptions.- Since:
- 3.0
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static longserialVersionUIDThe serial version UID.
-
Constructor Summary
Constructors Modifier Constructor Description protectedConcurrentRuntimeException()Creates a new, uninitialized instance ofConcurrentRuntimeException.ConcurrentRuntimeException(java.lang.String msg, java.lang.Throwable cause)Creates a new instance ofConcurrentRuntimeExceptionand initializes it with the given message and cause.ConcurrentRuntimeException(java.lang.Throwable cause)Creates a new instance ofConcurrentRuntimeExceptionand 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
-
ConcurrentRuntimeException
protected ConcurrentRuntimeException()
Creates a new, uninitialized instance ofConcurrentRuntimeException.
-
ConcurrentRuntimeException
public ConcurrentRuntimeException(java.lang.Throwable cause)
Creates a new instance ofConcurrentRuntimeExceptionand 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
-
ConcurrentRuntimeException
public ConcurrentRuntimeException(java.lang.String msg, java.lang.Throwable cause)Creates a new instance ofConcurrentRuntimeExceptionand 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
-
-