# Programming Clojure, Third Edition: \`assert\` throws Error, not Exception (page 206-7)

**URL:** <https://forum.devtalk.com/t/programming-clojure-third-edition-assert-throws-error-not-exception-page-206-7/108400>\
**Category:** PragProg Customers\
**Tags:** book-programming-clojure-third-edition, errata\
**Created:** [10 May 2023 09:52 UTC](https://forum.devtalk.com/t/programming-clojure-third-edition-assert-throws-error-not-exception-page-206-7/108400 "2023-05-10T09:52:27Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![alexmiller](https://forum.devtalk.com/user_avatar/forum.devtalk.com/alexmiller/32/1006_2.png) [@alexmiller](https://forum.devtalk.com/u/alexmiller)\
**Post date:** [10 May 2023 12:38 UTC](https://forum.devtalk.com/t/programming-clojure-third-edition-assert-throws-error-not-exception-page-206-7/108400/2 "2023-05-10T12:38:13Z")

</div>

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.

---

_[View the full topic](https://forum.devtalk.com/t/programming-clojure-third-edition-assert-throws-error-not-exception-page-206-7/108400)._
