HTTP - Ensure all exceptions are caught and handled
Description
The catch block in HTTP.java for ConnectException allows an unhandled exception to fail quietly without any error in either the response or a thrown error.
Move the catch to handle SocketExceptiom which ConnectException extends and and a throw for any exceptions which are unknown.
Activity
Show:
Jon Clausen February 21, 2025 at 3:55 PM
Fixed with commit d0aaf902ec
Fixed
Pinned fields
Click on the next to a field label to start pinning.
The catch block in HTTP.java for
ConnectException
allows an unhandled exception to fail quietly without any error in either the response or a thrown error.Move the catch to handle
SocketExceptiom
whichConnectException
extends and and a throw for any exceptions which are unknown.