Rabbit-R1/switch port/java/sources/kotlin/ExceptionsKt__ExceptionsKt.java

71 lines
4.1 KiB
Java
Raw Normal View History

2024-05-21 16:08:36 -05:00
package kotlin;
import androidx.constraintlayout.widget.ConstraintLayout;
import io.sentry.SentryEvent;
import java.io.PrintStream;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.util.List;
import kotlin.internal.PlatformImplementationsKt;
import kotlin.jvm.internal.Intrinsics;
/* JADX INFO: Access modifiers changed from: package-private */
/* compiled from: Exceptions.kt */
@Metadata(d1 = {"\u00004\n\u0000\n\u0002\u0010\u0011\n\u0002\u0018\u0002\n\u0002\u0010\u0003\n\u0002\b\u0005\n\u0002\u0010 \n\u0002\b\u0004\n\u0002\u0010\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\u001a\u0014\u0010\r\u001a\u00020\u000e*\u00020\u00032\u0006\u0010\u000f\u001a\u00020\u0003H\u0007\u001a\r\u0010\u0010\u001a\u00020\u000e*\u00020\u0003H\u0087\b\u001a\u0015\u0010\u0010\u001a\u00020\u000e*\u00020\u00032\u0006\u0010\u0011\u001a\u00020\u0012H\u0087\b\u001a\u0015\u0010\u0010\u001a\u00020\u000e*\u00020\u00032\u0006\u0010\u0013\u001a\u00020\u0014H\u0087\b\u001a\f\u0010\u0015\u001a\u00020\u0016*\u00020\u0003H\u0007\"!\u0010\u0000\u001a\b\u0012\u0004\u0012\u00020\u00020\u0001*\u00020\u00038F¢\u0006\f\u0012\u0004\b\u0004\u0010\u0005\u001a\u0004\b\u0006\u0010\u0007\"$\u0010\b\u001a\b\u0012\u0004\u0012\u00020\u00030\t*\u00020\u00038FX\u0087\u0004¢\u0006\f\u0012\u0004\b\n\u0010\u0005\u001a\u0004\b\u000b\u0010\\u0006\u0017"}, d2 = {"stackTrace", "", "Ljava/lang/StackTraceElement;", "", "getStackTrace$annotations", "(Ljava/lang/Throwable;)V", "getStackTrace", "(Ljava/lang/Throwable;)[Ljava/lang/StackTraceElement;", "suppressedExceptions", "", "getSuppressedExceptions$annotations", "getSuppressedExceptions", "(Ljava/lang/Throwable;)Ljava/util/List;", "addSuppressed", "", SentryEvent.JsonKeys.EXCEPTION, "printStackTrace", "stream", "Ljava/io/PrintStream;", "writer", "Ljava/io/PrintWriter;", "stackTraceToString", "", "kotlin-stdlib"}, k = 5, mv = {1, 9, 0}, xi = ConstraintLayout.LayoutParams.Table.LAYOUT_EDITOR_ABSOLUTEX, xs = "kotlin/ExceptionsKt")
/* loaded from: classes3.dex */
public class ExceptionsKt__ExceptionsKt {
public static /* synthetic */ void getStackTrace$annotations(Throwable th) {
}
public static /* synthetic */ void getSuppressedExceptions$annotations(Throwable th) {
}
private static final void printStackTrace(Throwable th) {
Intrinsics.checkNotNullParameter(th, "<this>");
th.printStackTrace();
}
private static final void printStackTrace(Throwable th, PrintWriter writer) {
Intrinsics.checkNotNullParameter(th, "<this>");
Intrinsics.checkNotNullParameter(writer, "writer");
th.printStackTrace(writer);
}
private static final void printStackTrace(Throwable th, PrintStream stream) {
Intrinsics.checkNotNullParameter(th, "<this>");
Intrinsics.checkNotNullParameter(stream, "stream");
th.printStackTrace(stream);
}
public static final StackTraceElement[] getStackTrace(Throwable th) {
Intrinsics.checkNotNullParameter(th, "<this>");
StackTraceElement[] stackTrace = th.getStackTrace();
Intrinsics.checkNotNull(stackTrace);
return stackTrace;
}
public static final String stackTraceToString(Throwable th) {
Intrinsics.checkNotNullParameter(th, "<this>");
StringWriter stringWriter = new StringWriter();
PrintWriter printWriter = new PrintWriter(stringWriter);
th.printStackTrace(printWriter);
printWriter.flush();
String stringWriter2 = stringWriter.toString();
Intrinsics.checkNotNullExpressionValue(stringWriter2, "toString(...)");
return stringWriter2;
}
public static final void addSuppressed(Throwable th, Throwable exception) {
Intrinsics.checkNotNullParameter(th, "<this>");
Intrinsics.checkNotNullParameter(exception, "exception");
if (th != exception) {
PlatformImplementationsKt.IMPLEMENTATIONS.addSuppressed(th, exception);
}
}
public static final List<Throwable> getSuppressedExceptions(Throwable th) {
Intrinsics.checkNotNullParameter(th, "<this>");
return PlatformImplementationsKt.IMPLEMENTATIONS.getSuppressed(th);
}
}