Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.

DirectoryReadOnlyException inherits from System.IO.IOException, wrong? #340

Closed
Yomodo opened this issue Jun 9, 2017 · 0 comments
Closed
Assignees
Milestone

Comments

@Yomodo
Copy link
Collaborator

Yomodo commented Jun 9, 2017

Currently DirectoryReadOnlyException inherits from: System.IO.IOException

I think this is incorrect and inheritance should be from UnauthorizedAccessException,
as is the case with FileReadOnlyException.

Normally, .NET throws an UnauthorizedAccessException when encountering read-only files/folders.

@Yomodo Yomodo added the Bug 🪲 label Jun 9, 2017
@Yomodo Yomodo added this to the vNext milestone Jun 9, 2017
@Yomodo Yomodo self-assigned this Jun 9, 2017
@Yomodo Yomodo closed this as completed in 4db6ea2 Jun 10, 2017
@Yomodo Yomodo reopened this Jun 10, 2017
@Yomodo Yomodo closed this as completed Jun 26, 2017
@Yomodo Yomodo modified the milestones: vNext, Release 2.2 Jan 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants