Documentation ¶
Index ¶
- func ErrorCode(err error) int32
- func New(code interface{}, msg string) error
- func Newf(code interface{}, format string, a ...interface{}) error
- func RegisterImplementor(prompter Prompter)
- func StreamServerInterceptor() grpc.StreamServerInterceptor
- func UnaryResponseInterceptor() grpc.UnaryServerInterceptor
- func With(err error, msg string) error
- func Withf(err error, format string, a ...interface{}) error
- type Prompter
- type StatusError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterImplementor ¶
func RegisterImplementor(prompter Prompter)
RegisterImplementor registers the error prompter service implementor.
func StreamServerInterceptor ¶
func StreamServerInterceptor() grpc.StreamServerInterceptor
func UnaryResponseInterceptor ¶
func UnaryResponseInterceptor() grpc.UnaryServerInterceptor
Types ¶
type Prompter ¶
func Implementor ¶
func Implementor() Prompter
Implementor returns the error prompter service implementor.
type StatusError ¶
func (*StatusError) Error ¶
func (err *StatusError) Error() string
Click to show internal directories.
Click to hide internal directories.