# HOF for a function not throwing an error

**URL:** <https://discourse.julialang.org/t/hof-for-a-function-not-throwing-an-error/99277>\
**Category:** General Usage\
**Tags:** question\
**Created:** [May 23, 2023, 1:14pm UTC](https://discourse.julialang.org/t/hof-for-a-function-not-throwing-an-error/99277 "2023-05-23T13:14:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [May 23, 2023, 1:14pm UTC](https://discourse.julialang.org/t/hof-for-a-function-not-throwing-an-error/99277/1 "2023-05-23T13:14:57Z")

</div>

Does this have a name, or does it exist in a package?

```julia
function throws_no_errors(f, args...)
    try
        f(args...)
        true
    catch
        false
    end
end

```

If not, suggestions for both are welcome.

---

<div class="post-metadata">

**Author:** ![gdalle](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gdalle/32/27854_2.png) [@gdalle](https://discourse.julialang.org/u/gdalle)\
**Post date:** [May 23, 2023, 2:24pm UTC](https://discourse.julialang.org/t/hof-for-a-function-not-throwing-an-error/99277/2 "2023-05-23T14:24:56Z")

</div>

Sounds like a good name for such a function (or the associated macro)
