{"id":17230070,"url":"https://github.com/robinbuschmann/angular-filtered-catch","last_synced_at":"2025-08-10T00:14:57.888Z","repository":{"id":123808644,"uuid":"61491052","full_name":"RobinBuschmann/angular-filtered-catch","owner":"RobinBuschmann","description":"angular-filtered-catch is an extension for angulars promise implementation, which adds the possibility to filter catches by a specified error type.","archived":false,"fork":false,"pushed_at":"2016-09-22T11:18:03.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T19:48:59.757Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RobinBuschmann.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-06-19T17:10:11.000Z","updated_at":"2016-06-20T11:28:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"befc0726-71bd-45be-84ad-87b09c743685","html_url":"https://github.com/RobinBuschmann/angular-filtered-catch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/RobinBuschmann/angular-filtered-catch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobinBuschmann%2Fangular-filtered-catch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobinBuschmann%2Fangular-filtered-catch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobinBuschmann%2Fangular-filtered-catch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobinBuschmann%2Fangular-filtered-catch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RobinBuschmann","download_url":"https://codeload.github.com/RobinBuschmann/angular-filtered-catch/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobinBuschmann%2Fangular-filtered-catch/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269656010,"owners_count":24454571,"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","status":"online","status_checked_at":"2025-08-09T02:00:10.424Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-10-15T04:52:21.005Z","updated_at":"2025-08-10T00:14:57.864Z","avatar_url":"https://github.com/RobinBuschmann.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# angular-filtered-catch\n\nThis project is an extension for angulars promise implementation, which adds the possibility to filter catches by a specified error type.\n\n## Usage\n\nAdd _angular-filtered-catch_ as dependency in your project.\n\n````\nangular.module('your-ng-app', ['angular-filtered-catch']);\n\n````\n\n````\n\n  // your specific error implementation\n  class FooError extends Error {}\n \n\n  // somewhere in your code\n  $q\n  .when()\n  .then(() =\u003e {\n  \n    // ...\n  \n    throw new FooError();\n  })\n  .then(() =\u003e {\n    // never executed\n  })\n  .catch(FooError, err =\u003e {\n  \n    // handle FooError\n  })\n  .catch(err =\u003e {\n  \n    // handle all other errors\n  })\n\n````\n\n## TypeScript support\n\nThis project also contains of a typescript declaration file, which extends angulars IPromise interface.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobinbuschmann%2Fangular-filtered-catch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobinbuschmann%2Fangular-filtered-catch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobinbuschmann%2Fangular-filtered-catch/lists"}