I just ran into this and it was driving me crazy.
I was creating a multi-catch exception handler by adding URISyntaxException
to and existing catch.
Eclipse complained with
No exception of type Object can be thrown; an exception type must be a
subclass of Throwable
I finally noticed that I had not added the corresponding import statement so eclipse didn't know the type of the newly added exception.
It would be nice if eclipse would have complained with
URISyntaxException cannot be resolved to a type
which is what is says when the exception is by itself.
The error you get when it's part of a multi-catch is non-intuitive.