{"id":20651810,"url":"https://github.com/saucelabs/customerror","last_synced_at":"2025-05-10T10:30:50.683Z","repository":{"id":57631511,"uuid":"410129324","full_name":"saucelabs/customerror","owner":"saucelabs","description":"Custom errors standardizes errors across applications","archived":true,"fork":false,"pushed_at":"2023-02-23T06:19:07.000Z","size":39,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-30T17:40:56.991Z","etag":null,"topics":["custom-error","go","golang"],"latest_commit_sha":null,"homepage":"https://github.com/saucelabs/customerror","language":"Go","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/saucelabs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-24T23:43:32.000Z","updated_at":"2024-09-30T14:33:47.000Z","dependencies_parsed_at":"2024-06-19T17:39:30.389Z","dependency_job_id":"5557326a-0dac-4dd7-a5c6-14b5f3adcbed","html_url":"https://github.com/saucelabs/customerror","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saucelabs%2Fcustomerror","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saucelabs%2Fcustomerror/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saucelabs%2Fcustomerror/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saucelabs%2Fcustomerror/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saucelabs","download_url":"https://codeload.github.com/saucelabs/customerror/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253400940,"owners_count":21902578,"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":["custom-error","go","golang"],"created_at":"2024-11-16T17:29:43.617Z","updated_at":"2025-05-10T10:30:50.452Z","avatar_url":"https://github.com/saucelabs.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# customerror\n\n`customerror` provides the base block to create custom errors. It also provides built-in custom errors covering some common cases. A Custom Error provides context - a `Message` to an optionally wrapped `Err`. Additionally a `Code` - for example \"E1010\", and `StatusCode` can be provided. Both static (pre-created), and dynamic (in-line) errors can be easily created. `Code` helps a company build a catalog of errors, which helps, and improves customer service.\n\n## Install\n\n`$ go get github.com/saucelabs/customerror@vX.Y.Z`\n\n## Usage\n\nSee [`example_test.go`](example_test.go), and [`customerror_test.go`](customerror_test.go) file.\n\n## Documentation\n\nRun `$ make doc` or check out [online](https://pkg.go.dev/github.com/saucelabs/customerror).\n\n## Development\n\nCheck out [CONTRIBUTION](CONTRIBUTION.md).\n\n### Release\n\n1. Update [CHANGELOG](CHANGELOG.md) accordingly.\n2. Once changes from MR are merged.\n3. Tag and release.\n\n## Roadmap\n\nCheck out [CHANGELOG](CHANGELOG.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaucelabs%2Fcustomerror","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaucelabs%2Fcustomerror","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaucelabs%2Fcustomerror/lists"}