apkfuckery/com.discord/smali/com/esotericsoftware/kryo/KryoException.smali

135 lines
3.4 KiB
Smali
Raw Normal View History

2019-02-04 20:05:16 +00:00
.class public Lcom/esotericsoftware/kryo/KryoException;
.super Ljava/lang/RuntimeException;
# instance fields
.field private trace:Ljava/lang/StringBuffer;
# direct methods
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/RuntimeException;-><init>()V
return-void
.end method
.method public constructor <init>(Ljava/lang/String;)V
.locals 0
invoke-direct {p0, p1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
return-void
.end method
.method public constructor <init>(Ljava/lang/String;Ljava/lang/Throwable;)V
.locals 0
invoke-direct {p0, p1, p2}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
return-void
.end method
.method public constructor <init>(Ljava/lang/Throwable;)V
.locals 0
invoke-direct {p0, p1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/Throwable;)V
return-void
.end method
# virtual methods
.method public addTrace(Ljava/lang/String;)V
.locals 2
2019-02-04 20:08:30 +00:00
if-eqz p1, :cond_1
2019-02-04 20:05:16 +00:00
iget-object v0, p0, Lcom/esotericsoftware/kryo/KryoException;->trace:Ljava/lang/StringBuffer;
2019-02-04 20:08:30 +00:00
if-nez v0, :cond_0
2019-02-04 20:05:16 +00:00
new-instance v0, Ljava/lang/StringBuffer;
const/16 v1, 0x200
invoke-direct {v0, v1}, Ljava/lang/StringBuffer;-><init>(I)V
iput-object v0, p0, Lcom/esotericsoftware/kryo/KryoException;->trace:Ljava/lang/StringBuffer;
2019-02-04 20:08:30 +00:00
:cond_0
2019-02-04 20:05:16 +00:00
iget-object v0, p0, Lcom/esotericsoftware/kryo/KryoException;->trace:Ljava/lang/StringBuffer;
const/16 v1, 0xa
invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;
iget-object v0, p0, Lcom/esotericsoftware/kryo/KryoException;->trace:Ljava/lang/StringBuffer;
invoke-virtual {v0, p1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;
return-void
2019-02-04 20:08:30 +00:00
:cond_1
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string v0, "info cannot be null."
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
2019-02-04 20:05:16 +00:00
.end method
.method public getMessage()Ljava/lang/String;
.locals 2
2019-02-04 20:08:30 +00:00
iget-object v0, p0, Lcom/esotericsoftware/kryo/KryoException;->trace:Ljava/lang/StringBuffer;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
if-nez v0, :cond_0
2019-02-04 20:05:16 +00:00
invoke-super {p0}, Ljava/lang/RuntimeException;->getMessage()Ljava/lang/String;
2019-02-04 20:08:30 +00:00
move-result-object v0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
return-object v0
2019-02-04 20:05:16 +00:00
:cond_0
new-instance v0, Ljava/lang/StringBuffer;
const/16 v1, 0x200
invoke-direct {v0, v1}, Ljava/lang/StringBuffer;-><init>(I)V
invoke-super {p0}, Ljava/lang/RuntimeException;->getMessage()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;
invoke-virtual {v0}, Ljava/lang/StringBuffer;->length()I
move-result v1
if-lez v1, :cond_1
const/16 v1, 0xa
invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;
:cond_1
const-string v1, "Serialization trace:"
invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;
iget-object v1, p0, Lcom/esotericsoftware/kryo/KryoException;->trace:Ljava/lang/StringBuffer;
invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/StringBuffer;)Ljava/lang/StringBuffer;
invoke-virtual {v0}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;
2019-02-04 20:08:30 +00:00
move-result-object v0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
return-object v0
2019-02-04 20:05:16 +00:00
.end method