cherryError

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2022 License: MIT Imports: 2 Imported by: 44

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	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")
)

message

View Source
var (
	ClusterRPCClientIsStop = Error("rpc client is stop")
	ClusterNoImplement     = Error("no implement")
	NodeTypeIsNil          = Error("node type is nil.")
)

cluster

View Source
var (
	DiscoveryMemberListIsEmpty = Error("get member list is empty.")
)
View Source
var (
	ProtobufWrongValueType = Error("convert on wrong type value")
)

Functions

func Error

func Error(text string) error

func Errorf

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

func Wrap added in v1.1.31

func Wrap(err error, text string) error

func Wrapf added in v1.1.31

func Wrapf(err error, 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