Rabbit-R1/switch port/smali/smali_classes3/io/sentry/util/ExceptionUtils.smali
2024-05-21 17:08:36 -04:00

47 lines
1 KiB
Smali

.class public final Lio/sentry/util/ExceptionUtils;
.super Ljava/lang/Object;
.source "ExceptionUtils.java"
# direct methods
.method public constructor <init>()V
.locals 0
.line 7
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static findRootCause(Ljava/lang/Throwable;)Ljava/lang/Throwable;
.locals 1
const-string v0, "throwable cannot be null"
.line 16
invoke-static {p0, v0}, Lio/sentry/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
.line 18
:goto_0
invoke-virtual {p0}, Ljava/lang/Throwable;->getCause()Ljava/lang/Throwable;
move-result-object v0
if-eqz v0, :cond_0
invoke-virtual {p0}, Ljava/lang/Throwable;->getCause()Ljava/lang/Throwable;
move-result-object v0
if-eq v0, p0, :cond_0
.line 19
invoke-virtual {p0}, Ljava/lang/Throwable;->getCause()Ljava/lang/Throwable;
move-result-object p0
goto :goto_0
:cond_0
return-object p0
.end method