Documentation
¶
Overview ¶
Package cherryError provides lightweight error constructors and sentinel errors used throughout the Cherry framework.
Constructors:
- Error / Errorf — create a new error
- Wrap / Wrapf — wrap an existing error with context
Sentinel errors are grouped by subsystem:
- route, packet, message, protobuf, cluster, discovery, actor, func
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RouteFieldCantEmpty = Error("Route field cannot be empty") RouteInvalid = Error("Invalid route") )
route
View Source
var ( PacketWrongType = Error("Wrong packet type") PacketSizeExceed = Error("Codec: packet size exceeded") 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 stopped") ClusterRequestTimeout = Error("Cluster request timeout") ClusterPacketMarshalFail = Error("Cluster packet marshal failed") ClusterPacketUnmarshalFail = Error("Cluster packet unmarshal failed") ClusterPublishFail = Error("Cluster publish failed") ClusterRequestFail = Error("Cluster request failed") 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") )
func
View Source
var (
ActorPathError = Error("Actor path is invalid")
)
actor
View Source
var (
DiscoveryNotFoundNode = Error("Discovery node not found")
)
discovery
View Source
var (
ProtobufWrongValueType = Error("Conversion on wrong value type")
)
protobuf
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.