{"repo":"FlineDev/ErrorKit","free":true,"listed":false,"github":"https://github.com/FlineDev/ErrorKit","clone":"git clone https://github.com/FlineDev/ErrorKit.git","description":"Simplified error handling with built-in user-friendly messages for common errors. Fully localized. Community-driven.","language":"Swift","stars":428,"topics":["debugging","error-handling","swift","swift6","swiftui","typed-throws"],"license":"MIT","category":"dev-tools","readme_excerpt":"ErrorKit Making error handling in Swift more intuitive and powerful with clearer messages, type safety, and user-friendly diagnostics. Overview Swift's error handling has several limitations that make it challenging to create robust, user-friendly applications: - The Error protocol's confusing behavior with localizedDescription - Hard-to-understand system error messages - Limited type safety in error propagation - Difficulties with error chain debugging (relevant for typed throws!) - Challenges in collecting meaningful feedback from users ErrorKit addresses these challenges with a suite of lightweight, interconnected features you can adopt progressively. Core Features The Throwable Protocol Throwable fixes the confusion of Swift's Error protocol by providing a clear, Swift-native approach to error handling: Now when catching this error, you'll see exactly what you expect: For rapid development, you can use string raw values: Read more about Throwable → Enhanced Error Descriptions Get improved, user-friendly messages for ANY error, including system errors: These enhanced descriptions are community-provided and fully localized mappings of common system errors to clearer, more actionable messages. ErrorKit comes with built-in mappers for Foundation, CoreData, MapKit, and more. You can also create custom mappers for third-party libraries or your own error types. Read more about Enhanced Error Descriptions → Swift 6 Typed Throws Support Swift 6 introduces typed throws ( throws(Err","default_branch":null,"files":null,"tree":[],"storefront":"/r/FlineDev","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/FlineDev/ErrorKit/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}