package retrofit2.adapter.rxjava3; import retrofit2.Response; /* loaded from: classes.dex */ public final class Result { private final Throwable error; private final Response response; public static Result error(Throwable th) { if (th == null) { throw new NullPointerException("error == null"); } return new Result<>(null, th); } public static Result response(Response response) { if (response == null) { throw new NullPointerException("response == null"); } return new Result<>(response, null); } private Result(Response response, Throwable th) { this.response = response; this.error = th; } public final Response response() { return this.response; } public final boolean isError() { return this.error != null; } public final Throwable error() { return this.error; } }