You can't because only subclasses of Throwable
can be thrown. I suppose it would be possible for them to have allowed you to use Object
in a catch
block, instead -- the only superclass of Throwable
-- but what would be the point, since the variable would always refer to a Throwable
instance.