Yes, there are many places where people say "exception" when it should really be "error" or "throwable". Even in materials from Sun and Oracle, including some messages from the JVM. In text written by humans, there's a tendency to mix these up. In actual
Java code however, there's a strict distinction. So if you want to catch something that's really an Error, you need to say catch Error or catch Throwable.
Note that many people will say
you should never do that, and in production code that's often true, though not
never. But for experimentation for learning purposes, no problem, go ahead and see what happens.