Versions in this module Expand all Collapse all v0 v0.4.0 Dec 4, 2022 Changes in this version + var ContextNotFound = DefaultErrHandler.LNewErrorDesc(error.ContextNotFound, "context not found") + var DefaultErrHandler = New() + var ErrCallArgsType = DefaultErrHandler.LNewErrorDesc(error.CallArgsTypeErr, "call arguments type error") + var ErrClient = DefaultErrHandler.LNewErrorDesc(error.ClientError, "client error") + var ErrCodecMarshalError = DefaultErrHandler.LNewErrorDesc(error.CodecMarshalErr, "codec.Marshal return one error") + var ErrCodecUnMarshalError = DefaultErrHandler.LNewErrorDesc(error.CodecMarshalErr, "codec.UnMarshal return one error") + var ErrConnection = DefaultErrHandler.LNewErrorDesc(error.ConnectionErr, "connection error") + var ErrMessageDecoding = DefaultErrHandler.LNewErrorDesc(error.MessageDecodingFailed, "RpcMessage decoding invalid") + var ErrMessageEncoding = DefaultErrHandler.LNewErrorDesc(error.MessageEncodingFailed, "RpcMessage encoding invalid") + var ErrServer = DefaultErrHandler.LNewErrorDesc(error.ServerError, "server error") + var ServiceNotfound = DefaultErrHandler.LNewErrorDesc(error.ServiceNotFound, "service no register") + var Success = DefaultErrHandler.LNewErrorDesc(error.Success, "OK") + func New() perror.LErrors + func NewStackTrace() perror.LErrors + type JsonErrorHandler struct + func (j JsonErrorHandler) LNewErrorDesc(code int, message string, mores ...interface{}) perror.LErrorDesc + func (j JsonErrorHandler) LWarpErrorDesc(desc perror.LErrorDesc, mores ...interface{}) perror.LErrorDesc