@GwtCompatible public class ExecutionError extends Error
Error
variant of ExecutionException
. As
with ExecutionException
, the error's cause
comes from a failed task, possibly run in another thread. That cause should
itself be an Error
; if not, use ExecutionException
or UncheckedExecutionException
. This allows the client code to continue to
distinguish between exceptions and errors, even when they come from other
threads.Modifier | Constructor and Description |
---|---|
protected |
ExecutionError()
Creates a new instance with
null as its detail message. |
|
ExecutionError(Error cause)
Creates a new instance with the given cause.
|
protected |
ExecutionError(String message)
Creates a new instance with the given detail message.
|
|
ExecutionError(String message,
Error cause)
Creates a new instance with the given detail message and cause.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
protected ExecutionError()
null
as its detail message.protected ExecutionError(@Nullable String message)
public ExecutionError(@Nullable String message, @Nullable Error cause)
public ExecutionError(@Nullable Error cause)
Copyright © 2010-2014. All Rights Reserved.