public class ErrorInfo extends Object implements Serializable
| 限定符和类型 | 方法和说明 |
|---|---|
static ErrorInfo |
createErrorInfoWithNullableCause(Throwable exception,
long timestamp)
Instantiates an
ErrorInfo to cover inconsistent behavior due to FLINK-21376. |
org.apache.flink.util.SerializedThrowable |
getException()
Returns the serialized form of the original exception.
|
String |
getExceptionAsString()
Returns the contained exception as a string.
|
long |
getTimestamp()
Returns the timestamp for the contained exception.
|
static Throwable |
handleMissingThrowable(Throwable throwable)
Utility method to cover FLINK-21376.
|
public static ErrorInfo createErrorInfoWithNullableCause(@Nullable Throwable exception, long timestamp)
ErrorInfo to cover inconsistent behavior due to FLINK-21376.exception - The error cause that might be null.timestamp - The timestamp the error was noticed.ErrorInfo containing a generic FlinkException in case of a missing
error cause.public static Throwable handleMissingThrowable(@Nullable Throwable throwable)
throwable - The actual exception.FlinkException if no exception was passed.public org.apache.flink.util.SerializedThrowable getException()
public String getExceptionAsString()
"(null)"public long getTimestamp()
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.