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

136 lines
3.4 KiB
Smali
Raw Normal View History

2019-07-24 11:27:29 +00:00
.class public Lcom/esotericsoftware/kryo/KryoException;
.super Ljava/lang/RuntimeException;
.source "KryoException.java"
# instance fields
2019-12-06 03:29:40 +00:00
.field public trace:Ljava/lang/StringBuffer;
2019-07-24 11:27:29 +00:00
# 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
if-eqz p1, :cond_1
iget-object v0, p0, Lcom/esotericsoftware/kryo/KryoException;->trace:Ljava/lang/StringBuffer;
if-nez v0, :cond_0
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;
:cond_0
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
: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
.end method
.method public getMessage()Ljava/lang/String;
.locals 2
iget-object v0, p0, Lcom/esotericsoftware/kryo/KryoException;->trace:Ljava/lang/StringBuffer;
if-nez v0, :cond_0
invoke-super {p0}, Ljava/lang/RuntimeException;->getMessage()Ljava/lang/String;
move-result-object v0
return-object v0
: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;
move-result-object v0
return-object v0
.end method