com.google.common.util.concurrent
@Beta @GwtCompatible public class UncheckedExecutionException extends java.lang.RuntimeException
ExecutionException. As with
ExecutionException, the exception's cause
comes from a failed task, possibly run in another thread.
UncheckedExecutionException is intended as an alternative to
ExecutionException when the exception thrown by a task is an
unchecked exception. This allows the client code to continue to distinguish
between checked and unchecked exceptions, even when they come from other
threads.
When wrapping an Error from another thread, prefer ExecutionError.
| Modifier | Constructor and Description |
|---|---|
protected |
UncheckedExecutionException()
Creates a new instance with
null as its detail message. |
protected |
UncheckedExecutionException(java.lang.String message)
Creates a new instance with the given detail message.
|
|
UncheckedExecutionException(java.lang.String message,
java.lang.Throwable cause)
Creates a new instance with the given detail message and cause.
|
|
UncheckedExecutionException(java.lang.Throwable cause)
Creates a new instance with the given cause.
|
protected UncheckedExecutionException()
null as its detail message.protected UncheckedExecutionException(java.lang.String message)
public UncheckedExecutionException(java.lang.String message,
java.lang.Throwable cause)
public UncheckedExecutionException(java.lang.Throwable cause)