Community
Participate
Working Groups
[API Design] HttpClient should specify the specific exceptions that cause it to fail. Or it should toss an exception type that is specific to HttpClient, such as HttpClientException.
Changing the throws declaration of HttpClient.start() would not be possible to do because it is a method of LifeCycle interface that is declared final in AbstractLifeCycle. The only other way would be to wrap the exceptions in HttpClient.doStart() method. But I am not convinced that wrapping the exceptions that are result of starting several other LifeCycle(s) would make the task of the person implementing HttpClient significantly easier. Joakim, if you could explain your justification for wrapping the exceptions, it would be great. -Michael
Accidentally resolved.
Marking as WONTFIX as HttpClient.start() is actually an implementation of the more fundamental jetty AbtractLifeCycle#start(), and this kind of change would far more impactful than its worth.