156 lines
5.2 KiB
Smali
156 lines
5.2 KiB
Smali
.class public final Lkotlinx/coroutines/k0;
|
|
.super Ljava/lang/Object;
|
|
.source "CoroutineExceptionHandler.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/SourceDebugExtension;
|
|
value = "SMAP\nCoroutineExceptionHandler.kt\nKotlin\n*S Kotlin\n*F\n+ 1 CoroutineExceptionHandler.kt\nkotlinx/coroutines/CoroutineExceptionHandlerKt\n+ 2 Exceptions.kt\nkotlinx/coroutines/ExceptionsKt\n*L\n1#1,110:1\n75#2:111\n*E\n*S KotlinDebug\n*F\n+ 1 CoroutineExceptionHandler.kt\nkotlinx/coroutines/CoroutineExceptionHandlerKt\n*L\n39#1:111\n*E\n"
|
|
.end annotation
|
|
|
|
.annotation runtime Lkotlin/Metadata;
|
|
bv = {}
|
|
d1 = {
|
|
"\u0000\"\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0003\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0004\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0002\u001a\u0018\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0001\u001a\u00020\u00002\u0006\u0010\u0003\u001a\u00020\u0002H\u0007\u001a\u0018\u0010\u0008\u001a\u00020\u00022\u0006\u0010\u0006\u001a\u00020\u00022\u0006\u0010\u0007\u001a\u00020\u0002H\u0000\u001a%\u0010\u000c\u001a\u00020\u000b2\u001a\u0008\u0004\u0010\n\u001a\u0014\u0012\u0004\u0012\u00020\u0000\u0012\u0004\u0012\u00020\u0002\u0012\u0004\u0012\u00020\u00040\tH\u0086\u0008\u00a8\u0006\r"
|
|
}
|
|
d2 = {
|
|
"Lkotlin/coroutines/CoroutineContext;",
|
|
"context",
|
|
"",
|
|
"exception",
|
|
"Lkotlin/d1;",
|
|
"b",
|
|
"originalException",
|
|
"thrownException",
|
|
"c",
|
|
"Lkotlin/Function2;",
|
|
"handler",
|
|
"Lkotlinx/coroutines/CoroutineExceptionHandler;",
|
|
"a",
|
|
"kotlinx-coroutines-core"
|
|
}
|
|
k = 0x2
|
|
mv = {
|
|
0x1,
|
|
0x4,
|
|
0x0
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method public static final a(Lej/p;)Lkotlinx/coroutines/CoroutineExceptionHandler;
|
|
.locals 2
|
|
.param p0 # Lej/p;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lej/p<",
|
|
"-",
|
|
"Lkotlin/coroutines/CoroutineContext;",
|
|
"-",
|
|
"Ljava/lang/Throwable;",
|
|
"Lkotlin/d1;",
|
|
">;)",
|
|
"Lkotlinx/coroutines/CoroutineExceptionHandler;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
new-instance v0, Lkotlinx/coroutines/k0$a;
|
|
|
|
sget-object v1, Lkotlinx/coroutines/CoroutineExceptionHandler;->p0:Lkotlinx/coroutines/CoroutineExceptionHandler$b;
|
|
|
|
invoke-direct {v0, p0, v1}, Lkotlinx/coroutines/k0$a;-><init>(Lej/p;Lkotlin/coroutines/CoroutineContext$b;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static final b(Lkotlin/coroutines/CoroutineContext;Ljava/lang/Throwable;)V
|
|
.locals 1
|
|
.param p0 # Lkotlin/coroutines/CoroutineContext;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.param p1 # Ljava/lang/Throwable;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lkotlinx/coroutines/InternalCoroutinesApi;
|
|
.end annotation
|
|
|
|
.line 1
|
|
:try_start_0
|
|
sget-object v0, Lkotlinx/coroutines/CoroutineExceptionHandler;->p0:Lkotlinx/coroutines/CoroutineExceptionHandler$b;
|
|
|
|
invoke-interface {p0, v0}, Lkotlin/coroutines/CoroutineContext;->get(Lkotlin/coroutines/CoroutineContext$b;)Lkotlin/coroutines/CoroutineContext$a;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lkotlinx/coroutines/CoroutineExceptionHandler;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 2
|
|
invoke-interface {v0, p0, p1}, Lkotlinx/coroutines/CoroutineExceptionHandler;->handleException(Lkotlin/coroutines/CoroutineContext;Ljava/lang/Throwable;)V
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
return-void
|
|
|
|
.line 3
|
|
:cond_0
|
|
invoke-static {p0, p1}, Lkotlinx/coroutines/j0;->a(Lkotlin/coroutines/CoroutineContext;Ljava/lang/Throwable;)V
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception v0
|
|
|
|
.line 4
|
|
invoke-static {p1, v0}, Lkotlinx/coroutines/k0;->c(Ljava/lang/Throwable;Ljava/lang/Throwable;)Ljava/lang/Throwable;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p0, p1}, Lkotlinx/coroutines/j0;->a(Lkotlin/coroutines/CoroutineContext;Ljava/lang/Throwable;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final c(Ljava/lang/Throwable;Ljava/lang/Throwable;)Ljava/lang/Throwable;
|
|
.locals 2
|
|
.param p0 # Ljava/lang/Throwable;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.param p1 # Ljava/lang/Throwable;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
if-ne p0, p1, :cond_0
|
|
|
|
return-object p0
|
|
|
|
.line 1
|
|
: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
|
|
|
|
.line 2
|
|
invoke-static {v0, p0}, Lkotlin/i;->a(Ljava/lang/Throwable;Ljava/lang/Throwable;)V
|
|
|
|
return-object v0
|
|
.end method
|