Class ExceptionUtils
java.lang.Object
dev.restate.sdk.core.ExceptionUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleancontainsAbortedExecutionException(Throwable throwable) static Optional<ProtocolException> findProtocolException(Throwable throwable) static booleanisTerminalException(Throwable throwable) static <E extends Throwable>
voidstatic ThrowableunwrapCompletionException(Throwable throwable) Unwrap theCompletionException/ExecutionExceptionwrappers introduced by theCompletableFuturemachinery, returning the underlying cause.
-
Method Details
-
unwrapCompletionException
Unwrap theCompletionException/ExecutionExceptionwrappers introduced by theCompletableFuturemachinery, returning the underlying cause. The reported error message and stacktrace should reflect the user-thrown exception, not the executor plumbing. -
sneakyThrow
-
findProtocolException
-
containsAbortedExecutionException
-
isTerminalException
-