a.smali
.class public final Lio/reactivex/plugins/a;
.super Ljava/lang/Object;
.source "SourceFile"
# static fields
.field public static volatile a:Lio/reactivex/functions/f;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lio/reactivex/functions/f<",
"-",
"Ljava/lang/Throwable;",
">;"
}
.end annotation
.end field
# direct methods
.method public static a(Ljava/util/concurrent/Callable;)Lio/reactivex/t;
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/concurrent/Callable<",
"Lio/reactivex/t;",
">;)",
"Lio/reactivex/t;"
}
.end annotation
.line 1
:try_start_0
invoke-interface {p0}, Ljava/util/concurrent/Callable;->call()Ljava/lang/Object;
move-result-object p0
const-string v0, "Scheduler Callable result can\'t be null"
.line 2
invoke-static {p0, v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
.line 3
check-cast p0, Lio/reactivex/t;
:try_end_b
.catchall {:try_start_0 .. :try_end_b} :catchall_c
return-object p0
:catchall_c
move-exception p0
.line 4
invoke-static {p0}, Lio/reactivex/internal/util/g;->d(Ljava/lang/Throwable;)Ljava/lang/RuntimeException;
move-result-object p0
throw p0
.end method
.method public static b(Ljava/lang/Throwable;)V
.registers 4
.line 1
sget-object v0, Lio/reactivex/plugins/a;->a:Lio/reactivex/functions/f;
if-nez p0, :cond_c
.line 2
new-instance p0, Ljava/lang/NullPointerException;
const-string v1, "onError called with null. Null values are generally not allowed in 2.x operators and sources."
invoke-direct {p0, v1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
goto :goto_34
.line 3
:cond_c
instance-of v1, p0, Lio/reactivex/exceptions/c;
const/4 v2, 0x1
if-eqz v1, :cond_12
goto :goto_2c
.line 4
:cond_12
instance-of v1, p0, Lio/reactivex/exceptions/b;
if-eqz v1, :cond_17
goto :goto_2c
.line 5
:cond_17
instance-of v1, p0, Ljava/lang/IllegalStateException;
if-eqz v1, :cond_1c
goto :goto_2c
.line 6
:cond_1c
instance-of v1, p0, Ljava/lang/NullPointerException;
if-eqz v1, :cond_21
goto :goto_2c
.line 7
:cond_21
instance-of v1, p0, Ljava/lang/IllegalArgumentException;
if-eqz v1, :cond_26
goto :goto_2c
.line 8
:cond_26
instance-of v1, p0, Lio/reactivex/exceptions/a;
if-eqz v1, :cond_2b
goto :goto_2c
:cond_2b
const/4 v2, 0x0
:goto_2c
if-nez v2, :cond_34
.line 9
new-instance v1, Lio/reactivex/exceptions/e;
invoke-direct {v1, p0}, Lio/reactivex/exceptions/e;-><init>(Ljava/lang/Throwable;)V
move-object p0, v1
:cond_34
:goto_34
if-eqz v0, :cond_46
.line 10
:try_start_36
invoke-interface {v0, p0}, Lio/reactivex/functions/f;->accept(Ljava/lang/Object;)V
:try_end_39
.catchall {:try_start_36 .. :try_end_39} :catchall_3a
return-void
:catchall_3a
move-exception v0
.line 11
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
move-result-object v1
.line 12
invoke-virtual {v1}, Ljava/lang/Thread;->getUncaughtExceptionHandler()Ljava/lang/Thread$UncaughtExceptionHandler;
move-result-object v2
.line 13
invoke-interface {v2, v1, v0}, Ljava/lang/Thread$UncaughtExceptionHandler;->uncaughtException(Ljava/lang/Thread;Ljava/lang/Throwable;)V
.line 14
:cond_46
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
move-result-object v0
.line 15
invoke-virtual {v0}, Ljava/lang/Thread;->getUncaughtExceptionHandler()Ljava/lang/Thread$UncaughtExceptionHandler;
move-result-object v1
.line 16
invoke-interface {v1, v0, p0}, Ljava/lang/Thread$UncaughtExceptionHandler;->uncaughtException(Ljava/lang/Thread;Ljava/lang/Throwable;)V
return-void
.end method