Closed pavansandeep2910 closed 1 year ago
I want to handle both errors and treat specific return values of the function as errors. it's like I want to use both handleWhen and handleWhenResult. Do you know how I can do that?
You make a policy like handleType(SomeError).orWhenResult(r => !r.ok)
handleType(SomeError).orWhenResult(r => !r.ok)
I want to handle both errors and treat specific return values of the function as errors. it's like I want to use both handleWhen and handleWhenResult. Do you know how I can do that?