Versions in this module Expand all Collapse all v0 v0.6.1 Jul 31, 2023 v0.0.4 Jul 31, 2023 Changes in this version + var ErrACL = &basicError + var ErrBiz = &basicError + var ErrCanceledByBusiness = &basicError + var ErrCircuitBreak = &basicError + var ErrConnOverLimit = ErrOverlimit.WithCause(errors.New("to many connections")) + var ErrGetConnection = &basicError + var ErrInstanceCircuitBreak = ErrCircuitBreak.WithCause(errors.New("instance circuitbreak")) + var ErrInternalException = &basicError + var ErrLoadbalance = &basicError + var ErrNoConnection = ErrInternalException.WithCause(errors.New("no connection available")) + var ErrNoDestAddress = ErrInternalException.WithCause(errors.New("no dest address")) + var ErrNoDestService = ErrInternalException.WithCause(errors.New("no dest service")) + var ErrNoInstance = ErrServiceDiscovery.WithCause(errors.New("no instance available")) + var ErrNoIvkRequest = ErrInternalException.WithCause(errors.New("invoker request not set")) + var ErrNoMoreInstance = &basicError + var ErrNoResolver = ErrInternalException.WithCause(errors.New("no resolver available")) + var ErrNotSupported = ErrInternalException.WithCause(errors.New("operation not supported")) + var ErrOverlimit = &basicError + var ErrPanic = &basicError + var ErrQPSOverLimit = ErrOverlimit.WithCause(errors.New("request too frequent")) + var ErrRPCFinish = &basicError + var ErrRPCTimeout = &basicError + var ErrRemoteOrNetwork = &basicError + var ErrRetry = &basicError + var ErrRoute = &basicError + var ErrServiceCircuitBreak = ErrCircuitBreak.WithCause(errors.New("service circuitbreak")) + var ErrServiceDiscovery = &basicError + var ErrTimeoutByBusiness = &basicError + var TimeoutCheckFunc func(err error) bool + func IsKitexError(err error) bool + func IsTimeoutError(err error) bool + type BizStatusError struct + func (e *BizStatusError) AppendBizMessage(extraMsg string) + func (e *BizStatusError) BizExtra() map[string]string + func (e *BizStatusError) BizMessage() string + func (e *BizStatusError) BizStatusCode() int32 + func (e *BizStatusError) Error() string + func (e *BizStatusError) SetBizExtra(key, value string) + type BizStatusErrorIface interface + BizExtra func() map[string]string + BizMessage func() string + BizStatusCode func() int32 + Error func() string + func FromBizStatusError(err error) (bizErr BizStatusErrorIface, ok bool) + func NewBizStatusError(code int32, msg string) BizStatusErrorIface + func NewBizStatusErrorWithExtra(code int32, msg string, extra map[string]string) BizStatusErrorIface + func NewGRPCBizStatusError(code int32, msg string) BizStatusErrorIface + func NewGRPCBizStatusErrorWithExtra(code int32, msg string, extra map[string]string) BizStatusErrorIface + type DetailedError struct + func (de *DetailedError) As(target interface{}) bool + func (de *DetailedError) Error() string + func (de *DetailedError) ErrorType() error + func (de *DetailedError) Format(s fmt.State, verb rune) + func (de *DetailedError) Is(target error) bool + func (de *DetailedError) Stack() string + func (de *DetailedError) Timeout() bool + func (de *DetailedError) Unwrap() error + func (de *DetailedError) WithExtraMsg(extraMsg string) + type GRPCBizStatusError struct + func (e *GRPCBizStatusError) GRPCStatus() *status.Status + func (e *GRPCBizStatusError) SetGRPCStatus(status *status.Status) + type GRPCStatusIface interface + GRPCStatus func() *status.Status + SetGRPCStatus func(status *status.Status)