dev.restate.sdk.common.AbortedExecutionException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk-common Show documentation
Show all versions of sdk-common Show documentation
Common interfaces of the Restate SDK
The newest version!
// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH
//
// This file is part of the Restate Java SDK,
// which is released under the MIT license.
//
// You can find a copy of the license in file LICENSE in the root
// directory of this repository or package, or at
// https://github.com/restatedev/sdk-java/blob/main/LICENSE
package dev.restate.sdk.common;
/** You MUST NOT catch this exception. */
public final class AbortedExecutionException extends Throwable {
@SuppressWarnings("StaticAssignmentOfThrowable")
public static final AbortedExecutionException INSTANCE = new AbortedExecutionException();
@SuppressWarnings("unchecked")
public static void sneakyThrow() throws E {
throw (E) AbortedExecutionException.INSTANCE;
}
private AbortedExecutionException() {
super("AbortedExecutionException");
setStackTrace(new StackTraceElement[] {});
}
}