public class WrappingRuntimeException extends FlinkRuntimeException
The exception is recognized (for example by the Task when reporting exceptions as failure causes) and unwrapped to avoid including the wrapper's stack trace in the reports. That way, exception traces are keeping to the important parts.
Constructor and Description |
---|
WrappingRuntimeException(String message,
Throwable cause) |
WrappingRuntimeException(Throwable cause) |
Modifier and Type | Method and Description |
---|---|
Throwable |
unwrap()
Recursively unwraps this WrappingRuntimeException and its causes, getting the first non
wrapping exception.
|
static RuntimeException |
wrapIfNecessary(Throwable throwable)
Ensures that any throwable can be thrown as a checked exception by potentially wrapping it.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public Throwable unwrap()
public static RuntimeException wrapIfNecessary(Throwable throwable)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.