145 lines
		
	
	
		
			3.5 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
			
		
		
	
	
			145 lines
		
	
	
		
			3.5 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
| .class public Lretrofit2/HttpException;
 | |
| .super Ljava/lang/RuntimeException;
 | |
| .source "HttpException.java"
 | |
| 
 | |
| 
 | |
| # instance fields
 | |
| .field private final code:I
 | |
| 
 | |
| .field private final message:Ljava/lang/String;
 | |
| 
 | |
| .field private final transient response:Lretrofit2/Response;
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "Lretrofit2/Response<",
 | |
|             "*>;"
 | |
|         }
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| 
 | |
| # direct methods
 | |
| .method public constructor <init>(Lretrofit2/Response;)V
 | |
|     .locals 1
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "(",
 | |
|             "Lretrofit2/Response<",
 | |
|             "*>;)V"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     invoke-static {p1}, Lretrofit2/HttpException;->getMessage(Lretrofit2/Response;)Ljava/lang/String;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-direct {p0, v0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {p1}, Lretrofit2/Response;->code()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     iput v0, p0, Lretrofit2/HttpException;->code:I
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {p1}, Lretrofit2/Response;->message()Ljava/lang/String;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     iput-object v0, p0, Lretrofit2/HttpException;->message:Ljava/lang/String;
 | |
| 
 | |
|     .line 4
 | |
|     iput-object p1, p0, Lretrofit2/HttpException;->response:Lretrofit2/Response;
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method private static getMessage(Lretrofit2/Response;)Ljava/lang/String;
 | |
|     .locals 2
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "(",
 | |
|             "Lretrofit2/Response<",
 | |
|             "*>;)",
 | |
|             "Ljava/lang/String;"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     const-string v0, "response == null"
 | |
| 
 | |
|     .line 1
 | |
|     invoke-static {p0, v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
 | |
| 
 | |
|     .line 2
 | |
|     new-instance v0, Ljava/lang/StringBuilder;
 | |
| 
 | |
|     invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
 | |
| 
 | |
|     const-string v1, "HTTP "
 | |
| 
 | |
|     invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
 | |
| 
 | |
|     invoke-virtual {p0}, Lretrofit2/Response;->code()I
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
 | |
| 
 | |
|     const-string v1, " "
 | |
| 
 | |
|     invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
 | |
| 
 | |
|     invoke-virtual {p0}, Lretrofit2/Response;->message()Ljava/lang/String;
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
 | |
| 
 | |
|     invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     return-object p0
 | |
| .end method
 | |
| 
 | |
| 
 | |
| # virtual methods
 | |
| .method public code()I
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget v0, p0, Lretrofit2/HttpException;->code:I
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public message()Ljava/lang/String;
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lretrofit2/HttpException;->message:Ljava/lang/String;
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public response()Lretrofit2/Response;
 | |
|     .locals 1
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "()",
 | |
|             "Lretrofit2/Response<",
 | |
|             "*>;"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation runtime Ljavax/annotation/Nullable;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lretrofit2/HttpException;->response:Lretrofit2/Response;
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 |