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