# \#exceptions

**URL:** https://discourse.julialang.org/tag/exceptions/731.md

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

---

## [Potential issue with multiple registrations of same handler in error hint](https://discourse.julialang.org/t/potential-issue-with-multiple-registrations-of-same-handler-in-error-hint/115389)

<div class="topic-metadata">

**Author:** [@arhik](https://discourse.julialang.org/u/arhik)\
**Replies:** 5\
**Last updated:** [June 13, 2024, 4:06am UTC](https://discourse.julialang.org/t/potential-issue-with-multiple-registrations-of-same-handler-in-error-hint/115389 "2024-06-13T04:06:17Z")

</div>

Currently the experimental api for error hint registration allows same handler to be registered multiple times. And the handler is called multiple times when triggered. Bear with me on this not so minimal example: usin…

---

## [Using @test\_throws for any error/excpeption](https://discourse.julialang.org/t/using-test-throws-for-any-error-excpeption/91609)

<div class="topic-metadata">

**Author:** [@HashBrown](https://discourse.julialang.org/u/HashBrown)\
**Replies:** 1\
**Last updated:** [December 13, 2022, 6:02pm UTC](https://discourse.julialang.org/t/using-test-throws-for-any-error-excpeption/91609 "2022-12-13T18:02:41Z")

</div>

I want to test that certain uses of my code throws an error, however I am not concerned with exactly what type of error. Is there a way to use @test\_throws without specifying the exact type of error?

---

## [Detect possible exceptions](https://discourse.julialang.org/t/detect-possible-exceptions/64304)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 2\
**Last updated:** [July 9, 2021, 2:55am UTC](https://discourse.julialang.org/t/detect-possible-exceptions/64304 "2021-07-09T02:55:17Z")

</div>

Suppose I want to have more confidence about the control flow in part of my program. Is it possible to detect what exceptions a function might throw? E.g. is that something JET can do? @aviatesk
