'Is volley RetryPolicy triggered for all kinds of failures?

Is the volley retry policy triggered for all types of errors such as NetworkFailure, ServerFailure, NoConnectionFailure etc. and for all non 2xx response codes? I have searched but not been able to find any document in regards to does it retry for all errors or for specific errors.

The only implementation I could find was DefaultRetryPolicy which does not seem to be caring for what kind of error we faced in the previous try. Are there any other code pointers/references?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source