{"id":13908365,"url":"https://github.com/williamFalcon/SwiftTryCatch","last_synced_at":"2025-07-18T07:30:58.945Z","repository":{"id":21725893,"uuid":"25047548","full_name":"williamFalcon/SwiftTryCatch","owner":"williamFalcon","description":"Adds try-catch support for Swift","archived":false,"fork":false,"pushed_at":"2023-01-03T13:39:27.000Z","size":13,"stargazers_count":142,"open_issues_count":3,"forks_count":60,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-02T02:22:01.051Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/williamFalcon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-10-10T18:17:14.000Z","updated_at":"2025-01-16T01:33:58.000Z","dependencies_parsed_at":"2023-01-12T03:45:54.433Z","dependency_job_id":null,"html_url":"https://github.com/williamFalcon/SwiftTryCatch","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/williamFalcon/SwiftTryCatch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/williamFalcon%2FSwiftTryCatch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/williamFalcon%2FSwiftTryCatch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/williamFalcon%2FSwiftTryCatch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/williamFalcon%2FSwiftTryCatch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/williamFalcon","download_url":"https://codeload.github.com/williamFalcon/SwiftTryCatch/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/williamFalcon%2FSwiftTryCatch/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265720459,"owners_count":23817241,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-06T23:02:40.586Z","updated_at":"2025-07-18T07:30:58.638Z","avatar_url":"https://github.com/williamFalcon.png","language":"Objective-C","funding_links":[],"categories":["HarmonyOS"],"sub_categories":["Windows Manager"],"readme":"SwiftTryCatch\n=============\n\nAdds try/catch support for Swift.\n\nSimple wrapper built around Objective-C `@try`/`@catch`/`@finally`.\n\n##Usage\n\n### Install via Cocoapods\n\n    pod 'SwiftTryCatch'\n\n### Import\n\nIf using Frameworks for pods (use_frameworks! flag in Podfile):\n\n    import SwiftTryCatch\n\nor import into Obj-C bridging header:\n\n    #import \"SwiftTryCatch.h\"\n\n### Use\n\n    SwiftTryCatch.try({\n             // try something\n         }, catch: { (error) in\n             print(\"\\(error.description)\")\n         }, finally: {\n             // close resources\n    })\n    \n## Notes  \nIt was pointed out that without -fobjc-arc-exceptions flag this will lead to memory leaks\n\nhttp://clang.llvm.org/docs/AutomaticReferenceCounting.html#exceptions\n\nTherefore, ARC-generated code leaks by default on exceptions, which is just fine if the process is going to be immediately terminated anyway. Programs which do care about recovering from exceptions should enable the option.    \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FwilliamFalcon%2FSwiftTryCatch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FwilliamFalcon%2FSwiftTryCatch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FwilliamFalcon%2FSwiftTryCatch/lists"}