public class ErrorInfo extends Object implements Serializable
Constructor and Description |
---|
ErrorInfo(Throwable exception,
long timestamp) |
Modifier and Type | Method and Description |
---|---|
static ErrorInfo |
createErrorInfoWithNullableCause(Throwable exception,
long timestamp)
Instantiates an
ErrorInfo to cover inconsistent behavior due to FLINK-21376. |
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 SerializedThrowable getException()
public String getExceptionAsString()
"(null)"
public long getTimestamp()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.