Derivate most of the RestClient's exception from the failureException

Hopefully it will help to mitigate the "catch exception and raise" a
failureException type logic from the code.

Change-Id: Ic1f9a35c2333238696d72a6038e6d47e47a7d889
2 files changed