public class FailureConverter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
JAVA_SDK |
Constructor and Description |
---|
FailureConverter() |
Modifier and Type | Method and Description |
---|---|
static io.temporal.api.failure.v1.Failure |
exceptionToFailure(java.lang.Throwable e) |
static java.lang.RuntimeException |
failureToException(io.temporal.api.failure.v1.Failure failure,
DataConverter dataConverter) |
static boolean |
isCanceledCause(java.lang.Throwable exception) |
static java.lang.StackTraceElement[] |
parseStackTrace(java.lang.String stackTrace)
Parses stack trace serialized using
serializeStackTrace(Throwable) . |
static java.lang.String |
serializeStackTrace(java.lang.Throwable e) |
public static final java.lang.String JAVA_SDK
public static java.lang.RuntimeException failureToException(io.temporal.api.failure.v1.Failure failure, DataConverter dataConverter)
public static io.temporal.api.failure.v1.Failure exceptionToFailure(java.lang.Throwable e)
public static java.lang.StackTraceElement[] parseStackTrace(java.lang.String stackTrace)
serializeStackTrace(Throwable)
.public static java.lang.String serializeStackTrace(java.lang.Throwable e)
public static boolean isCanceledCause(java.lang.Throwable exception)