2019-02-04 20:08:30 +00:00
|
|
|
.class public final Lkotlinx/coroutines/u;
|
2019-02-04 20:29:01 +00:00
|
|
|
.super Ljava/lang/Object;
|
2019-02-04 20:32:01 +00:00
|
|
|
.source "CoroutineExceptionHandler.kt"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
# direct methods
|
|
|
|
.method public static final a(Lkotlin/c/e;Ljava/lang/Throwable;Lkotlinx/coroutines/as;)V
|
|
|
|
.locals 1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const-string v0, "context"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const-string v0, "exception"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
instance-of v0, p1, Ljava/util/concurrent/CancellationException;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
if-eqz v0, :cond_0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:cond_0
|
2019-02-27 00:16:35 +00:00
|
|
|
sget-object v0, Lkotlinx/coroutines/as;->bge:Lkotlinx/coroutines/as$b;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
check-cast v0, Lkotlin/c/e$c;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-interface {p0, v0}, Lkotlin/c/e;->get(Lkotlin/c/e$c;)Lkotlin/c/e$b;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result-object v0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
check-cast v0, Lkotlinx/coroutines/as;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
if-eqz v0, :cond_1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
if-eq v0, p2, :cond_1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-interface {v0, p1}, Lkotlinx/coroutines/as;->p(Ljava/lang/Throwable;)Z
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result p2
|
|
|
|
|
|
|
|
if-eqz p2, :cond_1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
return-void
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:cond_1
|
|
|
|
invoke-static {p0, p1}, Lkotlinx/coroutines/u;->b(Lkotlin/c/e;Ljava/lang/Throwable;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
return-void
|
2019-02-04 20:08:30 +00:00
|
|
|
.end method
|
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
.method public static final b(Lkotlin/c/e;Ljava/lang/Throwable;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
.locals 1
|
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const-string v0, "context"
|
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
const-string v0, "exception"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:try_start_0
|
2019-02-27 00:16:35 +00:00
|
|
|
sget-object v0, Lkotlinx/coroutines/CoroutineExceptionHandler;->bfB:Lkotlinx/coroutines/CoroutineExceptionHandler$a;
|
2019-02-04 20:32:01 +00:00
|
|
|
|
|
|
|
check-cast v0, Lkotlin/c/e$c;
|
|
|
|
|
|
|
|
invoke-interface {p0, v0}, Lkotlin/c/e;->get(Lkotlin/c/e$c;)Lkotlin/c/e$b;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
check-cast v0, Lkotlinx/coroutines/CoroutineExceptionHandler;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
invoke-interface {v0, p0, p1}, Lkotlinx/coroutines/CoroutineExceptionHandler;->handleException(Lkotlin/c/e;Ljava/lang/Throwable;)V
|
|
|
|
:try_end_0
|
|
|
|
.catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-static {p0, p1}, Lkotlinx/coroutines/t;->a(Lkotlin/c/e;Ljava/lang/Throwable;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:catch_0
|
|
|
|
move-exception v0
|
|
|
|
|
|
|
|
invoke-static {p1, v0}, Lkotlinx/coroutines/u;->c(Ljava/lang/Throwable;Ljava/lang/Throwable;)Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-static {p0, p1}, Lkotlinx/coroutines/t;->a(Lkotlin/c/e;Ljava/lang/Throwable;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
.method public static final c(Ljava/lang/Throwable;Ljava/lang/Throwable;)Ljava/lang/Throwable;
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
const-string v0, "originalException"
|
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const-string v0, "thrownException"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
if-ne p0, p1, :cond_0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
new-instance v0, Ljava/lang/RuntimeException;
|
|
|
|
|
|
|
|
const-string v1, "Exception while trying to handle coroutine exception"
|
|
|
|
|
|
|
|
invoke-direct {v0, v1, p1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
|
|
|
|
check-cast v0, Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
invoke-static {v0, p0}, Lkotlin/a;->b(Ljava/lang/Throwable;Ljava/lang/Throwable;)V
|
|
|
|
|
|
|
|
return-object v0
|
2019-02-04 20:08:30 +00:00
|
|
|
.end method
|