public class ConcurrentException extends Exception
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.
Modifier | Constructor and Description |
---|---|
protected |
ConcurrentException()
Creates a new, uninitialized instance of
ConcurrentException . |
|
ConcurrentException(String msg,
Throwable cause)
Creates a new instance of
ConcurrentException and initializes it
with the given message and cause. |
|
ConcurrentException(Throwable cause)
Creates a new instance of
ConcurrentException and initializes it
with the given cause. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
protected ConcurrentException()
ConcurrentException
.public ConcurrentException(String msg, Throwable cause)
ConcurrentException
and initializes it
with the given message and cause.msg
- the error messagecause
- the cause of this exceptionIllegalArgumentException
- if the cause is not a checked exceptionpublic ConcurrentException(Throwable cause)
ConcurrentException
and initializes it
with the given cause.cause
- the cause of this exceptionIllegalArgumentException
- if the cause is not a checked exceptionCopyright © 2001–2023 The Apache Software Foundation. All rights reserved.