@InterfaceAudience.Private public final class ForeignExceptionUtil extends Object
Modifier | Constructor and Description |
---|---|
private |
ForeignExceptionUtil() |
Modifier and Type | Method and Description |
---|---|
private static <T extends Exception> |
createException(Class<T> clazz,
org.apache.hadoop.hbase.shaded.protobuf.generated.ErrorHandlingProtos.ForeignExceptionMessage eem) |
private static <T extends Exception> |
setExceptionDetails(T exception,
org.apache.hadoop.hbase.shaded.protobuf.generated.ErrorHandlingProtos.ForeignExceptionMessage eem) |
static Exception |
toException(org.apache.hadoop.hbase.shaded.protobuf.generated.ErrorHandlingProtos.ForeignExceptionMessage eem) |
static IOException |
toIOException(org.apache.hadoop.hbase.shaded.protobuf.generated.ErrorHandlingProtos.ForeignExceptionMessage eem) |
static org.apache.hadoop.hbase.shaded.protobuf.generated.ErrorHandlingProtos.ForeignExceptionMessage |
toProtoForeignException(String source,
Throwable t) |
static org.apache.hadoop.hbase.shaded.protobuf.generated.ErrorHandlingProtos.ForeignExceptionMessage |
toProtoForeignException(Throwable t) |
static List<org.apache.hadoop.hbase.shaded.protobuf.generated.ErrorHandlingProtos.StackTraceElementMessage> |
toProtoStackTraceElement(StackTraceElement[] trace)
Convert a stack trace to list of
StackTraceElement . |
static StackTraceElement[] |
toStackTrace(List<org.apache.hadoop.hbase.shaded.protobuf.generated.ErrorHandlingProtos.StackTraceElementMessage> traceList)
Unwind a serialized array of
ErrorHandlingProtos.StackTraceElementMessage s to a
StackTraceElement s. |
private ForeignExceptionUtil()
public static Exception toException(org.apache.hadoop.hbase.shaded.protobuf.generated.ErrorHandlingProtos.ForeignExceptionMessage eem)
public static IOException toIOException(org.apache.hadoop.hbase.shaded.protobuf.generated.ErrorHandlingProtos.ForeignExceptionMessage eem)
private static <T extends Exception> T createException(Class<T> clazz, org.apache.hadoop.hbase.shaded.protobuf.generated.ErrorHandlingProtos.ForeignExceptionMessage eem) throws ClassNotFoundException, NoSuchMethodException, InstantiationException, IllegalAccessException, InvocationTargetException
private static <T extends Exception> T setExceptionDetails(T exception, org.apache.hadoop.hbase.shaded.protobuf.generated.ErrorHandlingProtos.ForeignExceptionMessage eem)
public static org.apache.hadoop.hbase.shaded.protobuf.generated.ErrorHandlingProtos.ForeignExceptionMessage toProtoForeignException(Throwable t)
public static org.apache.hadoop.hbase.shaded.protobuf.generated.ErrorHandlingProtos.ForeignExceptionMessage toProtoForeignException(String source, Throwable t)
public static List<org.apache.hadoop.hbase.shaded.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.shaded.protobuf.generated.ErrorHandlingProtos.StackTraceElementMessage> traceList)
ErrorHandlingProtos.StackTraceElementMessage
s to a
StackTraceElement
s.traceList
- list that was serializedCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.