Documentation ¶
Index ¶
Constants ¶
View Source
const (
InternalError = "service internal error"
)
Variables ¶
This section is empty.
Functions ¶
func ServerErrorInterceptor ¶
func ServerErrorInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)
ServerErrorInterceptor transfer a error to status error
func ServiceErr2GRPCErr ¶
ServiceErr2GRPCErr serviceErr covert to GRPCErr
Types ¶
type Error ¶
func NewInternalError ¶ added in v0.0.4
func NewInternalError() *Error
Click to show internal directories.
Click to hide internal directories.