2021-06-27 20:44:35 +00:00
|
|
|
package retrofit2;
|
|
|
|
|
|
|
|
import java.util.Objects;
|
|
|
|
import okhttp3.Response;
|
2022-03-02 20:59:20 +00:00
|
|
|
/* loaded from: classes3.dex */
|
2021-06-27 20:44:35 +00:00
|
|
|
public class HttpException extends RuntimeException {
|
|
|
|
private final int code;
|
2021-12-17 22:03:14 +00:00
|
|
|
public final transient Response<?> j;
|
2021-06-27 20:44:35 +00:00
|
|
|
private final String message;
|
|
|
|
|
2022-03-02 20:59:20 +00:00
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
2021-08-04 22:02:59 +00:00
|
|
|
public HttpException(Response<?> response) {
|
2021-12-17 22:03:14 +00:00
|
|
|
super("HTTP " + response.a.m + " " + response.a.l);
|
2021-08-04 22:02:59 +00:00
|
|
|
Objects.requireNonNull(response, "response == null");
|
|
|
|
Response response2 = response.a;
|
2021-12-17 22:03:14 +00:00
|
|
|
this.code = response2.m;
|
|
|
|
this.message = response2.l;
|
|
|
|
this.j = response;
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public int a() {
|
|
|
|
return this.code;
|
|
|
|
}
|
|
|
|
}
|