Use OSError subclasses in os documentation (GH-14262)

(cherry picked from commit a55f75a6e3e9cda5c7c30bd961386b1a8a2e9892)

Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com>
1 file changed