APISonar


retrofit.RetrofitError.Kind.HTTP

> retrofit > RetrofitError > Kind > HTTP
retrofit APIs RetrofitError APIs Kind APIs HTTP APIs

Example 1
private static boolean isSignificantFailure(RetrofitError error) {
        if (error.getKind() == RetrofitError.Kind.HTTP) {
            int status = error.getResponse().getStatus();
            return status != HTTP_NOT_FOUND;
        }
        return error.getKind() != RetrofitError.Kind.NETWORK;
    }