aboutsummaryrefslogtreecommitdiffstats
path: root/guava/src/com/google/common/util/concurrent/UncheckedExecutionException.java
diff options
context:
space:
mode:
Diffstat (limited to 'guava/src/com/google/common/util/concurrent/UncheckedExecutionException.java')
-rw-r--r--guava/src/com/google/common/util/concurrent/UncheckedExecutionException.java18
1 files changed, 9 insertions, 9 deletions
diff --git a/guava/src/com/google/common/util/concurrent/UncheckedExecutionException.java b/guava/src/com/google/common/util/concurrent/UncheckedExecutionException.java
index 77afdc3..c0c99e1 100644
--- a/guava/src/com/google/common/util/concurrent/UncheckedExecutionException.java
+++ b/guava/src/com/google/common/util/concurrent/UncheckedExecutionException.java
@@ -16,10 +16,9 @@
package com.google.common.util.concurrent;
+import com.google.common.annotations.Beta;
import com.google.common.annotations.GwtCompatible;
-import javax.annotation.Nullable;
-
/**
* Unchecked variant of {@link java.util.concurrent.ExecutionException}. As with
* {@code ExecutionException}, the exception's {@linkplain #getCause() cause}
@@ -27,16 +26,17 @@ import javax.annotation.Nullable;
*
* <p>{@code UncheckedExecutionException} is intended as an alternative to
* {@code ExecutionException} when the exception thrown by a task is an
- * unchecked exception. However, it may also wrap a checked exception in some
- * cases.
+ * unchecked exception. This allows the client code to continue to distinguish
+ * between checked and unchecked exceptions, even when they come from other
+ * threads.
*
* <p>When wrapping an {@code Error} from another thread, prefer {@link
- * ExecutionError}. When wrapping a checked exception, prefer {@code
- * ExecutionException}.
+ * ExecutionError}.
*
* @author Charles Fry
* @since 10.0
*/
+@Beta
@GwtCompatible
public class UncheckedExecutionException extends RuntimeException {
/**
@@ -47,21 +47,21 @@ public class UncheckedExecutionException extends RuntimeException {
/**
* Creates a new instance with the given detail message.
*/
- protected UncheckedExecutionException(@Nullable String message) {
+ protected UncheckedExecutionException(String message) {
super(message);
}
/**
* Creates a new instance with the given detail message and cause.
*/
- public UncheckedExecutionException(@Nullable String message, @Nullable Throwable cause) {
+ public UncheckedExecutionException(String message, Throwable cause) {
super(message, cause);
}
/**
* Creates a new instance with the given cause.
*/
- public UncheckedExecutionException(@Nullable Throwable cause) {
+ public UncheckedExecutionException(Throwable cause) {
super(cause);
}