You declare the name of the exception, MyException, but you never do anything with it. Since it is not used, the compiler points to this.
You can simply delete the name.
catch(AmbiguousMatchException) { doSomethingElse(); }
Khepri Jun 23 2018-11-11T00: 00Z
source share