{"id":12653390,"name":"github.com/rogpeppe/errors","ecosystem":"go","description":"The juju/errors provides an easy way to annotate errors without losing the\norginal error context.\n\nThe package is based on github.com/juju/errgo and embeds the errgo.Err type.\n\nThe exported New and Errorf functions is designed to replace the errors.New\nand fmt.Errorf functions respectively. The same underlying error is there, but\nthe package also records the location at which the error was created.\n\nA primary use case for this library is to add extra context any time an\nerror is returned from a function.\n\nThis instead becomes:\n\nwhich just records the file and line number of the Trace call, or\n\nwhich also adds an annotation to the error.\n\nOften when you want to check to see if an error is of a particular type, a\nhelper function is exported by the package that returned the error, like the\n`os` package.  The underlying cause of the error is available using the\nCause function, or you can test the cause with the Check function.\n\nThe result of the Error() call on the annotated error is the annotations\njoined with colons, then the result of the Error() method\nfor the underlying error that was the cause.\n\nObviously recording the file, line and functions is not very useful if you\ncannot get them back out again.\n\nwill return something like:\n\nThe first error was generated by an external system, so there was no location\nassociated. The second, fourth, and last lines were generated with Trace calls,\nand the other two through Annotate.\n\nIf you are creating the errors, you can simply call:\n\nThis function will return an error that contains the annotation stack and\nrecords the file, line and function from the place where the error is created.\n\nSometimes when responding to an error you want to return a more specific error\nfor the situation.\n\nThis returns an error where the complete error stack is still available, and\nerrors.Cause will return the NotFound error.","homepage":"https://github.com/rogpeppe/errors","licenses":"LGPL-3.0","normalized_licenses":["LGPL-3.0"],"repository_url":"https://github.com/rogpeppe/errors","keywords_array":[],"namespace":"github.com/rogpeppe","versions_count":1,"first_release_published_at":"2014-09-25T10:04:48.000Z","latest_release_published_at":"2014-09-25T10:04:48.000Z","latest_release_number":"v0.0.0-20140925100448-23a9401bffac","last_synced_at":"2026-07-19T02:01:32.143Z","created_at":"2026-01-04T09:51:45.516Z","updated_at":"2026-10-08T16:19:58.699Z","registry_url":"https://pkg.go.dev/github.com/rogpeppe/errors","install_command":"go get github.com/rogpeppe/errors","documentation_url":"https://pkg.go.dev/github.com/rogpeppe/errors#section-documentation","metadata":{},"repo_metadata":{"id":21845393,"uuid":"25168587","full_name":"rogpeppe-contrib/juju-errors","owner":"rogpeppe-contrib","description":"Common juju errors and functions to annotate errors.  Based on juju/errgo","archived":false,"fork":true,"pushed_at":"2018-11-18T19:23:16.000Z","size":91,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-10-03T12:51:55.418Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"juju/errors","license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rogpeppe-contrib.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-10-13T17:03:36.000Z","updated_at":"2019-09-09T16:52:46.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/rogpeppe-contrib/juju-errors","commit_stats":null,"previous_names":["rogpeppe/errors"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rogpeppe-contrib/juju-errors","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rogpeppe-contrib%2Fjuju-errors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rogpeppe-contrib%2Fjuju-errors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rogpeppe-contrib%2Fjuju-errors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rogpeppe-contrib%2Fjuju-errors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rogpeppe-contrib","download_url":"https://codeload.github.com/rogpeppe-contrib/juju-errors/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rogpeppe-contrib%2Fjuju-errors/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":343170754,"owners_count":38122114,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-10-03T21:59:58.778Z","status":"online","status_checked_at":"2026-10-08T02:00:05.744Z","response_time":97,"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"}},"repo_metadata_updated_at":"2026-10-08T16:19:58.698Z","dependent_packages_count":0,"downloads":null,"downloads_period":null,"dependent_repos_count":0,"rankings":{"downloads":null,"dependent_repos_count":5.355536154605239,"dependent_packages_count":5.0187345579015314,"stargazers_count":null,"forks_count":null,"docker_downloads_count":null,"average":5.1871353562533855},"purl":"pkg:golang/github.com/rogpeppe/errors","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/go/github.com/rogpeppe/errors","docker_dependents_count":null,"docker_downloads_count":null,"usage_url":"https://repos.ecosyste.ms/usage/go/github.com/rogpeppe/errors","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/go/github.com/rogpeppe/errors/dependencies","status":null,"funding_links":[],"critical":null,"issue_metadata":null,"versions_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Frogpeppe%2Ferrors/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Frogpeppe%2Ferrors/version_numbers","latest_version_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Frogpeppe%2Ferrors/latest_version","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Frogpeppe%2Ferrors/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Frogpeppe%2Ferrors/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Frogpeppe%2Ferrors/codemeta","maintainers":[]}