.class public Lcom/esotericsoftware/kryo/KryoException; .super Ljava/lang/RuntimeException; # instance fields .field private trace:Ljava/lang/StringBuffer; # direct methods .method public constructor ()V .locals 0 invoke-direct {p0}, Ljava/lang/RuntimeException;->()V return-void .end method .method public constructor (Ljava/lang/String;)V .locals 0 invoke-direct {p0, p1}, Ljava/lang/RuntimeException;->(Ljava/lang/String;)V return-void .end method .method public constructor (Ljava/lang/String;Ljava/lang/Throwable;)V .locals 0 invoke-direct {p0, p1, p2}, Ljava/lang/RuntimeException;->(Ljava/lang/String;Ljava/lang/Throwable;)V return-void .end method .method public constructor (Ljava/lang/Throwable;)V .locals 0 invoke-direct {p0, p1}, Ljava/lang/RuntimeException;->(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;->(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;->(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;->(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