cosmos-sdk/errors
Aaron Craelius 9a875574bf
feat(errors): support grpc codes (#11274)
## Description

Follow-up to https://github.com/cosmos/cosmos-sdk/pull/11113#pullrequestreview-872963572.

This PR also makes `New` an alias of `Register` as some packages are using `New` as if it were `Register` but are not actually registering their error codes.



---

### Author Checklist

*All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.*

I have...

- [ ] included the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title
- [ ] added `!` to the type prefix if API or client breaking change
- [ ] targeted the correct branch (see [PR Targeting](https://github.com/cosmos/cosmos-sdk/blob/master/CONTRIBUTING.md#pr-targeting))
- [ ] provided a link to the relevant issue or specification
- [ ] followed the guidelines for [building modules](https://github.com/cosmos/cosmos-sdk/blob/master/docs/building-modules)
- [ ] included the necessary unit and integration [tests](https://github.com/cosmos/cosmos-sdk/blob/master/CONTRIBUTING.md#testing)
- [ ] added a changelog entry to `CHANGELOG.md`
- [ ] included comments for [documenting Go code](https://blog.golang.org/godoc)
- [ ] updated the relevant documentation or specification
- [ ] reviewed "Files changed" and left comments if necessary
- [ ] confirmed all CI checks have passed

### Reviewers Checklist

*All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.*

I have...

- [ ] confirmed the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title
- [ ] confirmed `!` in the type prefix if API or client breaking change
- [ ] confirmed all author checklist items have been addressed 
- [ ] reviewed state machine logic
- [ ] reviewed API design and naming
- [ ] reviewed documentation is accurate
- [ ] reviewed tests and test coverage
- [ ] manually tested (if applicable)
2022-02-25 20:58:17 +00:00
..
CHANGELOG.md docs: Improve markdownlint configuration (#11104) 2022-02-10 12:07:01 +00:00
abci.go feat: standalone errors go.mod (#10779) 2021-12-17 21:53:08 +00:00
abci_test.go fix(errors): test failures (#10879) 2022-01-04 18:19:08 -05:00
doc.go feat: standalone errors go.mod (#10779) 2021-12-17 21:53:08 +00:00
errors.go feat(errors): support grpc codes (#11274) 2022-02-25 20:58:17 +00:00
errors_test.go feat(errors): support grpc codes (#11274) 2022-02-25 20:58:17 +00:00
go.mod feat(errors): support grpc codes (#11274) 2022-02-25 20:58:17 +00:00
go.sum feat(errors): support grpc codes (#11274) 2022-02-25 20:58:17 +00:00
handle.go feat: standalone errors go.mod (#10779) 2021-12-17 21:53:08 +00:00
stacktrace.go fix(errors): test failures (#10879) 2022-01-04 18:19:08 -05:00
stacktrace_test.go fix(errors): test failures (#10879) 2022-01-04 18:19:08 -05:00