Skip to content

Conversation

Jeehut
Copy link
Member

@Jeehut Jeehut commented Dec 12, 2024

Fixes #3

Note that I found that naming the Throwable property localizedDescription did not lead to compiler errors as expected when the property is forgotten. Probably due to Throwable requiring conformance to Error which has a default value for it. So I had to rename it, so I renamed everything to userFriendlyMessage which I find most intuitive.

But the main part of this PR is the addition of the FileManager and URLSession overloads. I also added a README section again to explain the motivation behind these overloads. I admit, it's not a very detailed explanation, but I think we can improve as we use these overloads in real-world apps and have more concrete examples showcasing their advantage.

@Jeehut Jeehut requested a review from n0rthk1n9 December 12, 2024 13:22
@n0rthk1n9 n0rthk1n9 merged commit a5edc71 into main Dec 14, 2024
1 check passed
@n0rthk1n9 n0rthk1n9 deleted the wip/system-overloads branch December 14, 2024 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ErrorKit: Provide alternative methods to common system methods with typed throws that has several known cases and a generic case for the others

2 participants