github.com/nyan233/littlerpc@v0.4.6-0.20230316182519-0c8d5c48abaf/core/common/errorhandler/errno.go (about) 1 package errorhandler 2 3 import ( 4 error2 "github.com/nyan233/littlerpc/core/protocol/error" 5 ) 6 7 var ( 8 Success = DefaultErrHandler.LNewErrorDesc(error2.Success, "OK") 9 ServiceNotfound = DefaultErrHandler.LNewErrorDesc(error2.ServiceNotFound, "service no register") 10 ErrMessageDecoding = DefaultErrHandler.LNewErrorDesc(error2.MessageDecodingFailed, "RpcMessage decoding invalid") 11 ErrMessageEncoding = DefaultErrHandler.LNewErrorDesc(error2.MessageEncodingFailed, "RpcMessage encoding invalid") 12 ErrServer = DefaultErrHandler.LNewErrorDesc(error2.ServerError, "server error") 13 ErrCallArgsType = DefaultErrHandler.LNewErrorDesc(error2.CallArgsTypeErr, "call arguments type error") 14 ErrCodecMarshalError = DefaultErrHandler.LNewErrorDesc(error2.CodecMarshalErr, "codec.Marshal return one error") 15 ErrCodecUnMarshalError = DefaultErrHandler.LNewErrorDesc(error2.CodecMarshalErr, "codec.UnMarshal return one error") 16 ErrClient = DefaultErrHandler.LNewErrorDesc(error2.ClientError, "client error") 17 ErrConnection = DefaultErrHandler.LNewErrorDesc(error2.ConnectionErr, "connection error") 18 ContextNotFound = DefaultErrHandler.LNewErrorDesc(error2.ContextNotFound, "context not found") 19 ErrPlugin = DefaultErrHandler.LNewErrorDesc(10275, "plugin error") 20 )