Class CompletionActions


  • public final class CompletionActions
    extends Object
    Provides the common actions that are useful when handling a CompletionStage.
    • Method Detail

      • log

        @Nullable
        public static <T> T log​(Throwable cause)
        Logs the specified Throwable. For example:
        
         CompletableFuture<?> f = ...;
         f.exceptionally(CompletionActions::log);
         
        Returns:
        null