{"id":22433582,"url":"https://github.com/gavinning/shareerror","last_synced_at":"2025-03-27T07:45:39.711Z","repository":{"id":57093684,"uuid":"244274472","full_name":"gavinning/ShareError","owner":"gavinning","description":"创建携带更多信息的Error对象","archived":false,"fork":false,"pushed_at":"2020-03-02T03:57:26.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T18:06:41.358Z","etag":null,"topics":["err-code","error","error-code","share-error","shareerror"],"latest_commit_sha":null,"homepage":null,"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/gavinning.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}},"created_at":"2020-03-02T03:47:38.000Z","updated_at":"2020-03-02T03:57:59.000Z","dependencies_parsed_at":"2022-08-22T20:40:34.109Z","dependency_job_id":null,"html_url":"https://github.com/gavinning/ShareError","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gavinning%2FShareError","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gavinning%2FShareError/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gavinning%2FShareError/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gavinning%2FShareError/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gavinning","download_url":"https://codeload.github.com/gavinning/ShareError/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245806390,"owners_count":20675296,"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":["err-code","error","error-code","share-error","shareerror"],"created_at":"2024-12-05T22:15:21.427Z","updated_at":"2025-03-27T07:45:39.690Z","avatar_url":"https://github.com/gavinning.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"ShareError\n---\n可以携带err-code的Error对象\n\n### Install\n```sh\nnpm i @4a/share-error\n```\n\n### Usage\n```js\nconst ShareError = require('@4a/share-error')\n\nthrow new ShareError(100, 'error code is 100')\nthrow new ShareError(200, 'error code is 200')\nthrow new ShareError(300, 'error code is 300')\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgavinning%2Fshareerror","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgavinning%2Fshareerror","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgavinning%2Fshareerror/lists"}