Code Inspection returns unexpected error when method rthrows custom exeption

Issue #1756 resolved
Eric Alexander created an issue

Code to throw a custom exception the inspector marks it as invalid saying it “Expected type exception”

Code deploys and function appropriately

Comments (5)

  1. Scott Wells repo owner

    Eric, where is Terminal_Exception? The core issue where is that the type cannot be resolved, so IC doesn't know that it extends Exception. The first reported issue ("Expected type Exception...") is a downstream effect of the second ("Cannot resolve symbol..."). Once the latter is resolved, the former should also be resolved.

    If that type is in the same project, please use Illuminated Cloud>Configure Project>Rebuild Caches and Indices and allow the project to close/reopen.

  2. Log in to comment