package
0.2.0-alpha.3
Repository: https://github.com/superproj/onex.git
Documentation: pkg.go.dev

# README

This package provides a convenient way to map custom errors to both HTTP and gRPC status codes. This helps in ensuring consistency in error handling across different service architectures.

# Functions

No description provided by the author
No description provided by the author
No description provided by the author

# Variables

AlreadyExists is used when the resource already exists.
Internal is used when an internal error occurs.
InvalidArgument is used when the client sends invalid arguments.
NotFound is used when the requested resource is not found.
No description provided by the author
PermissionDenied is used when the client is not authorized to perform the requested operation.
Unauthorized is used when the client is not authenticated.
Unknown is the default error code.

# Structs

Code is the type that represents an error code.
Errno 定义了 miniblog 使用的错误类型.