@InterfaceAudience.Private @InterfaceStability.Evolving public final class ForeignExceptionUtil extends Object
Modifier and Type | Method and Description |
---|---|
static IOException |
toIOException(ErrorHandlingProtos.ForeignExceptionMessage eem) |
static ErrorHandlingProtos.ForeignExceptionMessage |
toProtoForeignException(String source,
Throwable t) |
static List<ErrorHandlingProtos.StackTraceElementMessage> |
toProtoStackTraceElement(StackTraceElement[] trace)
Convert a stack trace to list of
StackTraceElement . |
static StackTraceElement[] |
toStackTrace(List<ErrorHandlingProtos.StackTraceElementMessage> traceList)
Unwind a serialized array of
ErrorHandlingProtos.StackTraceElementMessage s to a
StackTraceElement s. |
public static IOException toIOException(ErrorHandlingProtos.ForeignExceptionMessage eem)
public static ErrorHandlingProtos.ForeignExceptionMessage toProtoForeignException(String source, Throwable t)
public static List<ErrorHandlingProtos.StackTraceElementMessage> toProtoStackTraceElement(StackTraceElement[] trace)
StackTraceElement
.trace
- the stack trace to convert to protobuf messagepublic static StackTraceElement[] toStackTrace(List<ErrorHandlingProtos.StackTraceElementMessage> traceList)
ErrorHandlingProtos.StackTraceElementMessage
s to a
StackTraceElement
s.traceList
- list that was serializedCopyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.