Skip to content
This repository has been archived by the owner on May 28, 2018. It is now read-only.

Add possibility to register exception handler to client #3709

Open
masooh opened this issue Oct 31, 2017 · 0 comments
Open

Add possibility to register exception handler to client #3709

masooh opened this issue Oct 31, 2017 · 0 comments

Comments

@masooh
Copy link

masooh commented Oct 31, 2017

At the moment the only possibility to catch an exception (that is caused by for example a timeout or an exception in a ClientRequestFilter) is to wrap the client itself in a try/catch block.

It would be helpful if for an existing client an exception handler could be registered.

This is for instance required if you want to trace the requests and responses. In the Happy Path scenario a trace can be started in ClientRequestFilter and stopped in ClientResponseFilter. In case of an exception the trace cannot be stopped.

An alternative could be an Interceptor. WriterInterceptor cannot be used as it only is called if there is a payload.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants