The book and docstring say it “throws an exception” (a Java and Clojure language mechanism), not “throws Exception” (a specific Java class), so I think the statements are correct regardless.
Generally, the docstrings are careful about what they commit to, and there is no commitment here to a specific class.