Re: void return type for client API

2018-02-19 Thread Francesco Chicchiriccò
On 19/02/2018 18:21, PeeDub wrote: I see that (for example) AccessTokenService.logout() returns a *void* type. Wouldn't it be helpful to return a Response type such that you could diagnose an error if it occurs? One could tell if it was successful or not by the Response status code. As it is,

void return type for client API

2018-02-19 Thread PeeDub
I see that (for example) AccessTokenService.logout() returns a *void* type. Wouldn't it be helpful to return a Response type such that you could diagnose an error if it occurs? One could tell if it was successful or not by the Response status code. As it is, you can not possibly tell from the