First of all sorry for the indescriptive title, but I don't really know if the issue is with code or IDE, and rather why it's happening.
Qustion: Why is this giving me an error? I'd expect that I should be able to print the name of the exception with out issues with this code.
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
Syntax error on token "e", delete this token
Eclipse suggests that I use this code instead:
This output is lacking the name of the exception.