ObservableError.smali
.class public final Lio/reactivex/internal/operators/observable/ObservableError;
.super Lio/reactivex/Observable;
.source "ObservableError.java"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Lio/reactivex/Observable<",
"TT;>;"
}
.end annotation
# instance fields
.field final errorSupplier:Ljava/util/concurrent/Callable;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/concurrent/Callable<",
"+",
"Ljava/lang/Throwable;",
">;"
}
.end annotation
.end field
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method public constructor <init>(Ljava/util/concurrent/Callable;)V
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/concurrent/Callable<",
"+",
"Ljava/lang/Throwable;",
">;)V"
}
.end annotation
.line 25
.local p0, "this":Lio/reactivex/internal/operators/observable/ObservableError;, "Lio/reactivex/internal/operators/observable/ObservableError<TT;>;"
.local p1, "errorSupplier":Ljava/util/concurrent/Callable;, "Ljava/util/concurrent/Callable<+Ljava/lang/Throwable;>;"
invoke-direct {p0}, Lio/reactivex/Observable;-><init>()V
.line 26
iput-object p1, p0, Lio/reactivex/internal/operators/observable/ObservableError;->errorSupplier:Ljava/util/concurrent/Callable;
.line 27
return-void
.end method
# virtual methods
.method public subscribeActual(Lio/reactivex/Observer;)V
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lio/reactivex/Observer<",
"-TT;>;)V"
}
.end annotation
.line 32
.local p0, "this":Lio/reactivex/internal/operators/observable/ObservableError;, "Lio/reactivex/internal/operators/observable/ObservableError<TT;>;"
.local p1, "s":Lio/reactivex/Observer;, "Lio/reactivex/Observer<-TT;>;"
:try_start_0
iget-object v0, p0, Lio/reactivex/internal/operators/observable/ObservableError;->errorSupplier:Ljava/util/concurrent/Callable;
invoke-interface {v0}, Ljava/util/concurrent/Callable;->call()Ljava/lang/Object;
move-result-object v0
const-string v1, "Callable returned null throwable. Null values are generally not allowed in 2.x operators and sources."
invoke-static {v0, v1}, Lio/reactivex/internal/functions/ObjectHelper;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/Throwable;
:try_end_e
.catchall {:try_start_0 .. :try_end_e} :catchall_f
.line 36
.local v0, "error":Ljava/lang/Throwable;
goto :goto_14
.line 33
.end local v0 # "error":Ljava/lang/Throwable;
:catchall_f
move-exception v0
.line 34
.local v0, "t":Ljava/lang/Throwable;
invoke-static {v0}, Lio/reactivex/exceptions/Exceptions;->throwIfFatal(Ljava/lang/Throwable;)V
.line 35
move-object v1, v0
.line 37
.local v0, "error":Ljava/lang/Throwable;
:goto_14
invoke-static {v0, p1}, Lio/reactivex/internal/disposables/EmptyDisposable;->error(Ljava/lang/Throwable;Lio/reactivex/Observer;)V
.line 38
return-void
.end method