# Raise or throw in documentation

**URL:** <https://discourse.julialang.org/t/raise-or-throw-in-documentation/95854>\
**Category:** General Usage\
**Tags:** documentation\
**Created:** [March 10, 2023, 11:15am UTC](https://discourse.julialang.org/t/raise-or-throw-in-documentation/95854 "2023-03-10T11:15:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Euhan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/euhan/32/36548_2.png) [@Euhan](https://discourse.julialang.org/u/Euhan)\
**Post date:** [March 10, 2023, 11:15am UTC](https://discourse.julialang.org/t/raise-or-throw-in-documentation/95854/1 "2023-03-10T11:15:12Z")

</div>

What is the difference between raising an exception and throwing one?

I am labouring under the apprehension that these two really are the same. If this is not so, it would be interesting to know the distinction, otherwise I think that this might be something that should be harmonised in the documentation.

Examples:

Under `Base.error` in the documentation, it says:

**Raise** an `ErrorException` with the given message.

While under `Core.throw` a few rows down, it says:

**Throw** an object as an exception.

If the same thing is meant by the two verbs I recommend that only one of them be used (in this meaning) in the documentation. While I normally prefer _raise_, I think _throw_ would be the better choice since this is the reserved word.

---

<div class="post-metadata">

**Author:** ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Post date:** [March 10, 2023, 12:09pm UTC](https://discourse.julialang.org/t/raise-or-throw-in-documentation/95854/2 "2023-03-10T12:09:23Z")

</div>

> [@Euhan](#):
>
> I am labouring under the apprehension that these two really are the same.

Yes. +1 for harmonizing the docs to “throw”.
