theshoeshiner commented on PR #1156: URL: https://github.com/apache/commons-lang/pull/1156#issuecomment-1887206030
> You're asking for a different language than Java, or a world where exceptions just don't occur. Everything in Java assumes exceptional conditions are handled by the usual exception mechanisms. Exceptions should not be returned instead of thrown. Exceptions should not be swallowed and ignored. > > It's better not to do this than provide an implementation that swallows exceptions. It's better not to do this than provide an implementation that blindly converts checked exceptions to runtime exceptions. That makes sense. If my use case requires me to log the exception and continue, then that implementation need only exist in my code, rather than in commons-lang. However I should point out the current implementation doesn't handle checked or unchecked exceptions in a reasonable manner, due to the weirdness of the Proxy class, nor does it allow for all listeners to receive the event in the case of a checked exception. If those two goals are reasonable and worthwhile then I'd like to try and implement them. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
