An open API service indexing awesome lists of open source software.

https://github.com/vtopc/verrors

Yet another error wrapper package.
https://github.com/vtopc/verrors

error error-handling errors go golang grpc grpc-go postgres postgresql postgresql-database sql

Last synced: 11 months ago
JSON representation

Yet another error wrapper package.

Awesome Lists containing this project

README

          

# verrors

Yet another error wrapper package.
Contains next error types:
- InvalidArgument
- NotFound
- AlreadyExists

with mapping from PostgreSQL errors, and to HTTP and gRPC.

## TODO
* Add PermissionDenied error.
* Add HTTP middleware.
* Add interceptor for wrapping errors into ToGRPCError().