{"id":37140743,"url":"https://github.com/echoutopia/zerror","last_synced_at":"2026-01-14T16:29:51.510Z","repository":{"id":57574246,"uuid":"218726841","full_name":"EchoUtopia/zerror","owner":"EchoUtopia","description":"zerror makes your busines projects error management simple and powerful","archived":false,"fork":false,"pushed_at":"2021-04-25T07:11:38.000Z","size":216,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-06T05:54:33.953Z","etag":null,"topics":["err-code","error","error-log","golang","organize-errors","predefined-errors"],"latest_commit_sha":null,"homepage":"","language":"Go","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/EchoUtopia.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":"2019-10-31T09:13:52.000Z","updated_at":"2021-04-23T09:34:51.000Z","dependencies_parsed_at":"2022-09-26T19:01:44.479Z","dependency_job_id":null,"html_url":"https://github.com/EchoUtopia/zerror","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/EchoUtopia/zerror","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EchoUtopia%2Fzerror","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EchoUtopia%2Fzerror/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EchoUtopia%2Fzerror/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EchoUtopia%2Fzerror/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EchoUtopia","download_url":"https://codeload.github.com/EchoUtopia/zerror/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EchoUtopia%2Fzerror/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28425941,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T15:24:48.085Z","status":"ssl_error","status_checked_at":"2026-01-14T15:23:41.940Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["err-code","error","error-log","golang","organize-errors","predefined-errors"],"created_at":"2026-01-14T16:29:50.870Z","updated_at":"2026-01-14T16:29:51.500Z","avatar_url":"https://github.com/EchoUtopia.png","language":"Go","readme":"# ZError\n\n## Notice\n\nv1 is deprecated, please use v2\n\nimport path : `github.com/EchoUtopia/zerror/v2`\n\nexample import path: `github.com/EchoUtopia/zerror/examples/v2`\n\n[中文文档](./Readme_zh.md)\n\n## Terminology\n- Error Definition(zerror.Def): error definition to generate or wrap error\n\n## Features\n\n- Predefine errors\n- Make error code predefined and standard\n- Specified error definition Status Code for Http, Grpc and so on\n- Classify errors with groups\n- Some built-in error definitions, like `zerror.NotFound`, `zerror.Forbidden` and so on\n- List all error codes and corresponding infos(descriptions, status code, etc)\n- Extension for every error definition to do many cool things you want.\n\n\n## Examples:\n\n```go\n\n\nfunc DoSomething()error {\n    ***\n    // return zerror.Internal.Wrap(errors.New(`***`))\n    return zerror.BadRequest.New()\n}\n\n```\n\n\n## full examples \n\nsee in examples directory\n\n\n## Why is zerror made\n\n\nI want errors to be clearly organized and reusable and classified in groups\n\nI want hide errors from client and return code instead\n\nI want to respond predefined code and log error in one line code\n\nI want to respond with different Status Code for Grpc/Http for error generated/wrapped by  zerror\n\nso Zerror is here\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fechoutopia%2Fzerror","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fechoutopia%2Fzerror","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fechoutopia%2Fzerror/lists"}