# IOError undocumented

**URL:** <https://discourse.julialang.org/t/ioerror-undocumented/98156>\
**Category:** General Usage\
**Created:** [May 1, 2023, 10:40am UTC](https://discourse.julialang.org/t/ioerror-undocumented/98156 "2023-05-01T10:40:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![screw\_dog](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/screw_dog/32/48119_2.png) [@screw\_dog](https://discourse.julialang.org/u/screw_dog)\
**Post date:** [May 1, 2023, 10:40am UTC](https://discourse.julialang.org/t/ioerror-undocumented/98156/1 "2023-05-01T10:40:06Z")

</div>

The `Base.Filesystem` module tends to throw `IOError` exceptions but these aren’t documented at all. I want to be able to catch these and determine the exact problem (ie incorrect permissions, file doesn’t exist, etc) but the only way I can see to do this is to check the `code` field.

As none of this is documented I’m reluctant to do this. Is there a better way? Or should these be documented? (If so I’ll probably make a start on it as it seems pretty straightforward)

---

<div class="post-metadata">

**Author:** ![sijo](https://avatars.discourse-cdn.com/v4/letter/s/da6949/32.png) [@sijo](https://discourse.julialang.org/u/sijo)\
**Post date:** [May 8, 2023, 7:34am UTC](https://discourse.julialang.org/t/ioerror-undocumented/98156/2 "2023-05-08T07:34:58Z")

</div>

I think it would be great to add some documentation.

Here are some relevant issues in the bug tracker: [#47771](https://github.com/JuliaLang/julia/issues/47771) and [#7841](https://github.com/JuliaLang/julia/issues/7841).
