{"id":37423169,"url":"https://github.com/ashr123/exceptional-functions","last_synced_at":"2026-01-16T06:09:14.686Z","repository":{"id":41978496,"uuid":"465475290","full_name":"ashr123/exceptional-functions","owner":"ashr123","description":"A collection of functions that protect against unchecked Exceptions","archived":false,"fork":false,"pushed_at":"2025-09-22T06:53:15.000Z","size":98,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-22T08:43:05.558Z","etag":null,"topics":["functional-programming","java"],"latest_commit_sha":null,"homepage":"","language":"Java","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/ashr123.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-03-02T21:29:59.000Z","updated_at":"2025-09-22T06:53:08.000Z","dependencies_parsed_at":"2023-12-19T06:44:58.119Z","dependency_job_id":"1df565ea-5897-4fdc-8e7a-66cc68cfc4cb","html_url":"https://github.com/ashr123/exceptional-functions","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/ashr123/exceptional-functions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashr123%2Fexceptional-functions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashr123%2Fexceptional-functions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashr123%2Fexceptional-functions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashr123%2Fexceptional-functions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ashr123","download_url":"https://codeload.github.com/ashr123/exceptional-functions/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashr123%2Fexceptional-functions/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28477632,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T03:13:13.607Z","status":"ssl_error","status_checked_at":"2026-01-16T03:11:47.863Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["functional-programming","java"],"created_at":"2026-01-16T06:09:13.989Z","updated_at":"2026-01-16T06:09:14.679Z","avatar_url":"https://github.com/ashr123.png","language":"Java","readme":"# exceptional-functions\n\n[![Maven Central](https://img.shields.io/maven-central/v/io.github.ashr123/exceptional-functions.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22io.github.ashr123%22%20AND%20a:%22exceptional-functions%22)\n\nA collection of functions that protect against unchecked Exceptions.\n\nCode example:\n\n```java\nimport io.github.ashr123.exceptional.functions.ThrowingFunction;\n\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.net.MalformedURLException;\nimport java.net.URI;\nimport java.net.URL;\n\npublic class Example {\n    public static Stream\u003cInputStream\u003e exampleWithCasting() {\n        return Stream.of(\n                        \"https://www.google.com\",\n                        \"https://www.ynet.co.il\",\n                        \"https://www.stackoverflow.com\"\n                )\n                .map(URI::create)\n                .map((ThrowingFunction\u003cURI, URL, MalformedURLException\u003e) URI::toURL)\n                .map((ThrowingFunction\u003cURL, InputStream, IOException\u003e) URL::openStream);\n    }\n\n    public static Stream\u003cInputStream\u003e exampleWithCastingAndWildcards() {\n        return Stream.of(\n                        \"https://www.google.com\",\n                        \"https://www.ynet.co.il\",\n                        \"https://www.stackoverflow.com\"\n                )\n                .map(URI::create)\n                .map((ThrowingFunction\u003cURI, URL, ?\u003e) URI::toURL)\n                .map((ThrowingFunction\u003cURL, InputStream, ?\u003e) URL::openStream);\n    }\n\n    public static Stream\u003cInputStream\u003e exampleWithCallingUnchecked() {\n        return Stream.of(\n                        \"https://www.google.com\",\n                        \"https://www.ynet.co.il\",\n                        \"https://www.stackoverflow.com\"\n                )\n                .map(URI::create)\n                .map(ThrowingFunction.unchecked(URI::toURL))\n                .map(ThrowingFunction.unchecked(URL::openStream));\n    }\n\n    public static \u003cR, T extends Throwable\u003e R doSomeAction(URL url, ThrowingFunction\u003cURL, R, T\u003e action) throws T {\n        return action.applyThrows(url);\n    }\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashr123%2Fexceptional-functions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fashr123%2Fexceptional-functions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashr123%2Fexceptional-functions/lists"}