what-the-bank/sources/o/C15178gjQ.java

35 lines
1.1 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.io.Writer;
import java.lang.reflect.UndeclaredThrowableException;
/* renamed from: o.gjQ, reason: case insensitive filesystem */
/* loaded from: classes6.dex */
public final class C15178gjQ {
static {
new String[]{"getCause", "getNextException", "getTargetException", "getException", "getSourceException", "getRootCause", "getCausedByException", "getNested", "getLinkedException", "getNestedException", "getLinkedCause", "getThrowable"};
}
public static String a(Throwable th) {
StringWriter stringWriter = new StringWriter();
th.printStackTrace(new PrintWriter((Writer) stringWriter, true));
return stringWriter.getBuffer().toString();
}
public static <R> R e(Throwable th) {
if (th instanceof RuntimeException) {
throw ((RuntimeException) th);
}
if (th instanceof Error) {
throw ((Error) th);
}
throw new UndeclaredThrowableException(th);
}
public static <R> R c(Throwable th) {
throw th;
}
}