# errors **Repository Path**: mirrors_go-openapi/errors ## Basic Information - **Project Name**: errors - **Description**: openapi toolkit common errors - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-24 - **Last Updated**: 2026-07-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # errors [![Tests][test-badge]][test-url] [![Coverage][cov-badge]][cov-url] [![CI vuln scan][vuln-scan-badge]][vuln-scan-url] [![CodeQL][codeql-badge]][codeql-url] [![Release][release-badge]][release-url] [![Go Report Card][gocard-badge]][gocard-url] [![CodeFactor Grade][codefactor-badge]][codefactor-url] [![License][license-badge]][license-url] [![GoDoc][godoc-badge]][godoc-url] [![Discord Channel][discord-badge]][discord-url] [![go version][goversion-badge]][goversion-url] ![Top language][top-badge] ![Commits since latest release][commits-badge] --- Shared errors and error interface used throughout the various libraries found in the go-openapi toolkit. ## Announcements * **2025-12-19** : new community chat on discord * a new discord community channel is available to be notified of changes and support users You may join the discord community by clicking the invite link on the discord badge (also above). [![Discord Channel][discord-badge]][discord-url] ## Status API is stable. ## Import this library in your project ```cmd go get github.com/go-openapi/errors ``` ## Basic usage ```go const url = "https://www.example.com/#" errGeneric := New(401,"onvalid argument: %s", url) errNotFound := NotFound("resource not found: %s", url) errNotImplemented := NotImplemented("method: %s", url) ``` ## Change log See ## Licensing This library ships under the [SPDX-License-Identifier: Apache-2.0](./LICENSE). ## Other documentation * [All-time contributors](./CONTRIBUTORS.md) * [Contributing guidelines][contributing-doc-site] * [Maintainers documentation][maintainers-doc-site] * [Code style][style-doc-site] ## Cutting a new release Maintainers can cut a new release by either: * running [this workflow](https://github.com/go-openapi/errors/actions/workflows/bump-release.yml) * or pushing a semver tag * signed tags are preferred * The tag message is prepended to release notes [test-badge]: https://github.com/go-openapi/errors/actions/workflows/go-test.yml/badge.svg [test-url]: https://github.com/go-openapi/errors/actions/workflows/go-test.yml [cov-badge]: https://codecov.io/gh/go-openapi/errors/branch/master/graph/badge.svg [cov-url]: https://codecov.io/gh/go-openapi/errors [vuln-scan-badge]: https://github.com/go-openapi/errors/actions/workflows/scanner.yml/badge.svg [vuln-scan-url]: https://github.com/go-openapi/errors/actions/workflows/scanner.yml [codeql-badge]: https://github.com/go-openapi/errors/actions/workflows/codeql.yml/badge.svg [codeql-url]: https://github.com/go-openapi/errors/actions/workflows/codeql.yml [release-badge]: https://badge.fury.io/gh/go-openapi%2Ferrors.svg [release-url]: https://badge.fury.io/gh/go-openapi%2Ferrors [gocard-badge]: https://goreportcard.com/badge/github.com/go-openapi/errors [gocard-url]: https://goreportcard.com/report/github.com/go-openapi/errors [codefactor-badge]: https://img.shields.io/codefactor/grade/github/go-openapi/errors [codefactor-url]: https://www.codefactor.io/repository/github/go-openapi/errors [godoc-badge]: https://pkg.go.dev/badge/github.com/go-openapi/errors [godoc-url]: http://pkg.go.dev/github.com/go-openapi/errors [discord-badge]: https://img.shields.io/discord/1446918742398341256?logo=discord&label=discord&color=blue [discord-url]: https://discord.gg/FfnFYaC3k5 [license-badge]: http://img.shields.io/badge/license-Apache%20v2-orange.svg [license-url]: https://github.com/go-openapi/errors/?tab=Apache-2.0-1-ov-file#readme [goversion-badge]: https://img.shields.io/github/go-mod/go-version/go-openapi/errors [goversion-url]: https://github.com/go-openapi/errors/blob/master/go.mod [top-badge]: https://img.shields.io/github/languages/top/go-openapi/errors [commits-badge]: https://img.shields.io/github/commits-since/go-openapi/errors/latest [contributing-doc-site]: https://go-openapi.github.io/doc-site/contributing/contributing/index.html [maintainers-doc-site]: https://go-openapi.github.io/doc-site/maintainers/index.html [style-doc-site]: https://go-openapi.github.io/doc-site/contributing/style/index.html