What is com.intellij.openapi.progress.ProcessCanceledException
Answered
I get this error sometimes, not always. And I found another post about turning it off with VM option:
-Didea.ProcessCanceledException=disabled
But I still don't understand what it is and when it get throw, can we just ignore it without any problem?
Thanks
Please sign in to leave a comment.
It's a normal exception that can be thrown from anywhere. It's used to cancel background threads (e.g. highlighting) when they make no sense anymore, e.g. when the user wants to type something. Disabling the exception with the specified property will potentially result in long UI freezes, so it's not advised. In most cases you should just rethrow it, it's handled correctly in IDE infrastructure.
Thank you Peter, I still turned it off when I'm debugging. But as you mentioned, I don't need to care about it in code. Thanks.