This sounds like the try-catch is not being used as ( how I see ) intended.
As Alex mentioned, they are costly so unless you need it, skip it.

I suggest just adding an IOErrorEvent listener/handler to the caller, and
if/when the call is complete then remove the listener(s) for GC. In the
Œtry, catch¹ scenario,  your code is always Œchecking¹ for the error.

Alan

>Try-Catch blocks are an absolute necessity as without them,
> you are putting the operation of your software into the hands of user input
errors, 
>http errors, unintended consequences as well as the myriad of things that exist
outside the ³Happy Path².



Reply via email to