I want to make a thread unstoppable for some reason, what is the sonarcube compliant solution? I have to catch Throwable but.
It says: Catch Exception instead of Throwable. Throwable and Error should not be caught
I cannot only catch Exceptions
I want to make a thread unstoppable for some reason, what is the sonarcube compliant solution? I have to catch Throwable but.
It says: Catch Exception instead of Throwable. Throwable and Error should not be caught
I cannot only catch Exceptions
Here's an example of how to catch and rethrow exceptions to comply with the rule: