.class public Lcom/helpshift/network/exception/HSRootApiException; .super Ljava/lang/RuntimeException; .source "SourceFile" # annotations .annotation system Ldalvik/annotation/MemberClasses; value = { Lcom/helpshift/network/exception/HSRootApiException$ExceptionType; } .end annotation # instance fields .field public final errorMessage:Ljava/lang/String; .field public final exception:Ljava/lang/Exception; .field public final exceptionType:Lcom/helpshift/network/exception/HSRootApiException$ExceptionType; # direct methods .method public constructor (Ljava/lang/Exception;Lcom/helpshift/network/exception/HSRootApiException$ExceptionType;Ljava/lang/String;)V .locals 0 .line 11 invoke-direct {p0, p3, p1}, Ljava/lang/RuntimeException;->(Ljava/lang/String;Ljava/lang/Throwable;)V iput-object p1, p0, Lcom/helpshift/network/exception/HSRootApiException;->exception:Ljava/lang/Exception; iput-object p2, p0, Lcom/helpshift/network/exception/HSRootApiException;->exceptionType:Lcom/helpshift/network/exception/HSRootApiException$ExceptionType; iput-object p3, p0, Lcom/helpshift/network/exception/HSRootApiException;->errorMessage:Ljava/lang/String; return-void .end method .method public static wrap(Ljava/lang/Exception;Lcom/helpshift/network/exception/HSRootApiException$ExceptionType;)Lcom/helpshift/network/exception/HSRootApiException; .locals 1 const/4 v0, 0x0 .line 22 invoke-static {p0, p1, v0}, Lcom/helpshift/network/exception/HSRootApiException;->wrap(Ljava/lang/Exception;Lcom/helpshift/network/exception/HSRootApiException$ExceptionType;Ljava/lang/String;)Lcom/helpshift/network/exception/HSRootApiException; move-result-object p0 return-object p0 .end method .method public static wrap(Ljava/lang/Exception;Lcom/helpshift/network/exception/HSRootApiException$ExceptionType;Ljava/lang/String;)Lcom/helpshift/network/exception/HSRootApiException; .locals 1 .line 29 instance-of v0, p0, Lcom/helpshift/network/exception/HSRootApiException; if-eqz v0, :cond_2 .line 30 check-cast p0, Lcom/helpshift/network/exception/HSRootApiException; .line 31 iget-object v0, p0, Lcom/helpshift/network/exception/HSRootApiException;->exception:Ljava/lang/Exception; if-nez p1, :cond_0 .line 33 iget-object p1, p0, Lcom/helpshift/network/exception/HSRootApiException;->exceptionType:Lcom/helpshift/network/exception/HSRootApiException$ExceptionType; :cond_0 if-nez p2, :cond_1 .line 39 iget-object p2, p0, Lcom/helpshift/network/exception/HSRootApiException;->errorMessage:Ljava/lang/String; :cond_1 move-object p0, v0 goto :goto_0 :cond_2 if-nez p1, :cond_3 .line 45 sget-object p1, Lcom/helpshift/network/exception/UnexpectedException;->GENERIC:Lcom/helpshift/network/exception/UnexpectedException; .line 51 :cond_3 :goto_0 new-instance v0, Lcom/helpshift/network/exception/HSRootApiException; invoke-direct {v0, p0, p1, p2}, Lcom/helpshift/network/exception/HSRootApiException;->(Ljava/lang/Exception;Lcom/helpshift/network/exception/HSRootApiException$ExceptionType;Ljava/lang/String;)V return-object v0 .end method