cerror

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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 (
	ClusterClientIsStop           = Error("Cluster client is stop")
	ClusterRequestTimeout         = Error("Cluster Request timeout")
	ClusterPacketMarshalFail      = Error("Cluster packet marshal fail")
	ClusterPacketUnmarshalFail    = Error("Cluster packet unmarshal fail")
	ClusterPublishFail            = Error("Cluster publish fail")
	ClsuterRequestFail            = Error("Cluster request fail")
	ClusterNodeTypeIsNil          = Error("Cluster node type is nil")
	ClusterNodeTypeMemberNotFound = Error("Cluster node type member not found")
)

cluster

View Source
var (
	FuncIsNil     = Error("Func is nil")
	FuncTypeError = Error("Func type error")
)
View Source
var (
	ActorPathError = Error("Actor path is error.")
)
View Source
var (
	DiscoveryNotFoundNode = Error("Discovery not found node")
)
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

func Wrap(err error, text string) error

func Wrapf

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