ResultOnSubscribe$ResultSubscriber.smali
.class Lretrofit2/adapter/rxjava/ResultOnSubscribe$ResultSubscriber;
.super Lrx/Subscriber;
.source "ResultOnSubscribe.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lretrofit2/adapter/rxjava/ResultOnSubscribe;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0xa
name = "ResultSubscriber"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<R:",
"Ljava/lang/Object;",
">",
"Lrx/Subscriber<",
"Lretrofit2/Response<",
"TR;>;>;"
}
.end annotation
# instance fields
.field private final subscriber:Lrx/Subscriber;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lrx/Subscriber<",
"-",
"Lretrofit2/adapter/rxjava/Result<",
"TR;>;>;"
}
.end annotation
.end field
# direct methods
.method constructor <init>(Lrx/Subscriber;)V
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lrx/Subscriber<",
"-",
"Lretrofit2/adapter/rxjava/Result<",
"TR;>;>;)V"
}
.end annotation
.line 1
invoke-direct {p0, p1}, Lrx/Subscriber;-><init>(Lrx/Subscriber;)V
.line 2
iput-object p1, p0, Lretrofit2/adapter/rxjava/ResultOnSubscribe$ResultSubscriber;->subscriber:Lrx/Subscriber;
return-void
.end method
# virtual methods
.method public onCompleted()V
.registers 2
.line 1
iget-object v0, p0, Lretrofit2/adapter/rxjava/ResultOnSubscribe$ResultSubscriber;->subscriber:Lrx/Subscriber;
invoke-interface {v0}, Lrx/Observer;->onCompleted()V
return-void
.end method
.method public onError(Ljava/lang/Throwable;)V
.registers 6
.line 1
:try_start_0
iget-object v0, p0, Lretrofit2/adapter/rxjava/ResultOnSubscribe$ResultSubscriber;->subscriber:Lrx/Subscriber;
invoke-static {p1}, Lretrofit2/adapter/rxjava/Result;->error(Ljava/lang/Throwable;)Lretrofit2/adapter/rxjava/Result;
move-result-object p1
invoke-interface {v0, p1}, Lrx/Observer;->onNext(Ljava/lang/Object;)V
:try_end_9
.catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_9} :catch_f
.line 2
iget-object p1, p0, Lretrofit2/adapter/rxjava/ResultOnSubscribe$ResultSubscriber;->subscriber:Lrx/Subscriber;
invoke-interface {p1}, Lrx/Observer;->onCompleted()V
return-void
:catch_f
move-exception p1
.line 3
:try_start_10
iget-object v0, p0, Lretrofit2/adapter/rxjava/ResultOnSubscribe$ResultSubscriber;->subscriber:Lrx/Subscriber;
invoke-interface {v0, p1}, Lrx/Observer;->onError(Ljava/lang/Throwable;)V
:try_end_15
.catch Lrx/exceptions/OnCompletedFailedException; {:try_start_10 .. :try_end_15} :catch_38
.catch Lrx/exceptions/OnErrorFailedException; {:try_start_10 .. :try_end_15} :catch_36
.catch Lrx/exceptions/OnErrorNotImplementedException; {:try_start_10 .. :try_end_15} :catch_34
.catch Ljava/lang/Throwable; {:try_start_10 .. :try_end_15} :catch_16
goto :goto_44
:catch_16
move-exception v0
.line 4
invoke-static {v0}, Lrx/exceptions/Exceptions;->throwIfFatal(Ljava/lang/Throwable;)V
.line 5
new-instance v1, Lrx/exceptions/CompositeException;
const/4 v2, 0x2
new-array v2, v2, [Ljava/lang/Throwable;
const/4 v3, 0x0
aput-object p1, v2, v3
const/4 p1, 0x1
aput-object v0, v2, p1
invoke-direct {v1, v2}, Lrx/exceptions/CompositeException;-><init>([Ljava/lang/Throwable;)V
.line 6
invoke-static {}, Lrx/plugins/RxJavaPlugins;->getInstance()Lrx/plugins/RxJavaPlugins;
move-result-object p1
invoke-virtual {p1}, Lrx/plugins/RxJavaPlugins;->getErrorHandler()Lrx/plugins/RxJavaErrorHandler;
move-result-object p1
invoke-virtual {p1, v1}, Lrx/plugins/RxJavaErrorHandler;->handleError(Ljava/lang/Throwable;)V
goto :goto_44
:catch_34
move-exception p1
goto :goto_39
:catch_36
move-exception p1
goto :goto_39
:catch_38
move-exception p1
.line 7
:goto_39
invoke-static {}, Lrx/plugins/RxJavaPlugins;->getInstance()Lrx/plugins/RxJavaPlugins;
move-result-object v0
invoke-virtual {v0}, Lrx/plugins/RxJavaPlugins;->getErrorHandler()Lrx/plugins/RxJavaErrorHandler;
move-result-object v0
invoke-virtual {v0, p1}, Lrx/plugins/RxJavaErrorHandler;->handleError(Ljava/lang/Throwable;)V
:goto_44
return-void
.end method
.method public bridge synthetic onNext(Ljava/lang/Object;)V
.registers 2
.line 1
check-cast p1, Lretrofit2/Response;
invoke-virtual {p0, p1}, Lretrofit2/adapter/rxjava/ResultOnSubscribe$ResultSubscriber;->onNext(Lretrofit2/Response;)V
return-void
.end method
.method public onNext(Lretrofit2/Response;)V
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lretrofit2/Response<",
"TR;>;)V"
}
.end annotation
.line 2
iget-object v0, p0, Lretrofit2/adapter/rxjava/ResultOnSubscribe$ResultSubscriber;->subscriber:Lrx/Subscriber;
invoke-static {p1}, Lretrofit2/adapter/rxjava/Result;->response(Lretrofit2/Response;)Lretrofit2/adapter/rxjava/Result;
move-result-object p1
invoke-interface {v0, p1}, Lrx/Observer;->onNext(Ljava/lang/Object;)V
return-void
.end method