cherryError

package
v1.1.20 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 15, 2021 License: MIT Imports: 3 Imported by: 27

Documentation

Index

Constants

View Source
const (
	OK                    = 0   // is ok
	SessionUIDNotBind     = 10  // session uid not bind
	DiscoveryNotFoundNode = 100 // discovery not fond node id
	RPCNetError           = 200 // rpc net error
	RPCUnmarshalError     = 201 // rpc data unmarshal error
	RPCMarshalError       = 202 // rpc data marshal error
	RPCRemoteExecuteError = 203 // rpc remote method executor error
)

Variables

View Source
var (
	SessionIllegalUID        = Error("illegal uid")
	SessionMemberNotFound    = Error("member not found in the group")
	SessionClosedGroup       = Error("group is closed")
	SessionDuplication       = Error("session has existed in the current group")
	SessionNotFoundInContext = Error("session not found in context")
)

session

View Source
var (
	RouteFieldCantEmpty = Error("route field can not be empty")
	RouteInvalid        = Error("invalid route")
)

route

View Source
var (
	PacketWrongType              = Error("wrong packet type")
	PacketSizeExceed             = Error("codec: packet size exceed")
	PacketConnectClosed          = Error("client connection closed")
	PacketInvalidHeader          = Error("invalid header")
	PacketMsgSmallerThanExpected = Error("received less data than expected, EOF?")
)

packet

View Source
var (
	MessageWrongType            = Error("wrong message type")
	MessageInvalid              = Error("invalid message")
	MessageRouteNotFound        = Error("route info not found in dictionary")
	MessageReplyShouldBeNotNull = Error("message replay should be not null")
)

message

View Source
var (
	ClusterBrokenPipe          = Error("broken low-level pipe")
	ClusterBufferExceed        = Error("session send buffer exceed")
	ClusterErrSessionOnNotify  = Error("error session on notify")
	ClusterClosedSession       = Error("session is closed")
	ClusterRPCHandleNotConfig  = Error("agent rpc handler not config")
	ClusterForwardFail         = Error("cluster forward msg fail")
	ClusterRPCHandleNotFound   = Error("rpc handler not found")
	ClusterRPCReplyShouldBePtr = Error("send rpc replay should be ptr")
	ClusterRPCClientIsStop     = Error("rpc client is stop")
	ClusterNoImplement         = Error("no implement")
	ClusterCallRPCFail         = Error("call rpc fail")
)

cluster

View Source
var (
	DiscoveryGetMemberListIsEmpty = Error("get member list is empty.")
)
View Source
var (
	HandlerNotFound = Error("handler not found")
)
View Source
var (
	ProtobufWrongValueType = Error("convert on wrong type value")
)
View Source
var (
	ResponseOK = &cherryProto.ErrorResponse{
		Code: OK,
	}
)

Functions

func Error

func Error(text string) error

func Errorf

func Errorf(format string, a ...interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL