{"id":19044544,"url":"https://github.com/crissdev/ng-error-handler","last_synced_at":"2025-11-12T05:01:51.770Z","repository":{"id":18794656,"uuid":"22008477","full_name":"crissdev/ng-error-handler","owner":"crissdev","description":"A localized error handler for AngularJS","archived":false,"fork":false,"pushed_at":"2015-05-19T09:55:11.000Z","size":232,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-11T06:21:58.715Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/crissdev.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-07-19T11:41:00.000Z","updated_at":"2014-11-10T16:28:52.000Z","dependencies_parsed_at":"2022-09-12T17:43:25.531Z","dependency_job_id":null,"html_url":"https://github.com/crissdev/ng-error-handler","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/crissdev/ng-error-handler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crissdev%2Fng-error-handler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crissdev%2Fng-error-handler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crissdev%2Fng-error-handler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crissdev%2Fng-error-handler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crissdev","download_url":"https://codeload.github.com/crissdev/ng-error-handler/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crissdev%2Fng-error-handler/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":283977736,"owners_count":26926541,"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-11-12T02:00:06.336Z","response_time":59,"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-11-08T22:46:35.794Z","updated_at":"2025-11-12T05:01:51.747Z","avatar_url":"https://github.com/crissdev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ng-error-handler\n\nA localized error handler for AngularJS\n\n[![Build Status](https://travis-ci.org/crissdev/ng-error-handler.svg?branch=master)](https://travis-ci.org/crissdev/ng-error-handler)\n[![devDependency Status](https://david-dm.org/crissdev/ng-error-handler/dev-status.svg)](https://david-dm.org/crissdev/ng-error-handler#info=devDependencies)\n\n\n### Dependencies\n\n* [angular](https://angularjs.org/) of course\n* [angular translate](http://angular-translate.github.io/) for localization support\n* [ui bootstrap](http://angular-ui.github.io/bootstrap/) for making the error box look nice\n\n\n### Demo\n\nAn example of how to use the cdevErrorBox directive on the page is available in [this](http://jsfiddle.net/crissdev/9UqM9/) fiddle.\n\n\n### Installation\n\n```sh\n$ bower install ng-error-handler\n```\n\n\n### Documentation\n\n##### cdevDefaultErrorCode\n\n\u003e Constant in cdevErrorHandling module\n\nDefines the fallback error code to use.\n\n##### cdevDefaultErrorMessage\n\n\u003e Constant in cdevErrorHandling module\n\nDefines the fallback error message to use.\n\n##### cdevErrorEventName\n\n\u003e Constant in cdevErrorHandling module\n\nDefines the event name to use when notifying through $rootScope.\n\n##### cdevErrorHandler\n\n\u003e Service in cdevErrorHandling module\n\nProvides methods to handle and format errors.\nThe format method will attempt to retrieve a localized error message through $translate service.\nThe service also provides a way to define custom error handlers - case in which the error event\nwill no longer be triggered through $rootScope.$emit method.\n\n##### cdevErrorBox\n\n\u003e Directive in cdevErrorHandling module\n\nProvides a way to display the error received through $rootScope (using cdevErrorEventName), or\nmanually using the methods injected in the current scope.\n\n\n### License\n\nMIT © [Cristian Trifan](http://crissdev.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrissdev%2Fng-error-handler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrissdev%2Fng-error-handler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrissdev%2Fng-error-handler/lists"}