@InterfaceAudience.Private public final class ForeignExceptionUtil extends Object
Modifier and Type | Method and Description |
---|---|
static Exception |
toException(ErrorHandlingProtos.ForeignExceptionMessage eem) |
static IOException |
toIOException(ErrorHandlingProtos.ForeignExceptionMessage eem) |
static ErrorHandlingProtos.ForeignExceptionMessage |
toProtoForeignException(String source,
Throwable t) |
static ErrorHandlingProtos.ForeignExceptionMessage |
toProtoForeignException(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 Exception toException(ErrorHandlingProtos.ForeignExceptionMessage eem)
public static IOException toIOException(ErrorHandlingProtos.ForeignExceptionMessage eem)
public static ErrorHandlingProtos.ForeignExceptionMessage toProtoForeignException(Throwable t)
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–2019 Cloudera. All rights reserved.