System.AuraHandledException causes false-positive error highlighting of the code:
Expected type Exception; found [System.AurahandledException, AurahandledException]
For instance, throwing
new DmlException() from
catch (Exception exc) block doesn’t cause this bug, although both
Exception class. This false-positive illegal assignment error occurs only in Intellij Idea 2019.2.3. WebStorm 2019.2.' behaves properly. I tried to reinstall IDEA but it didn’t help. Both Idea and WebStorm have 11.0.4 runtime version and the same inspection profile settings. I'm not sure if this issue is only related to Intellij Idea or Illuminated Cloud 2.