package
1.0.0
Repository: https://github.com/kalibriumnet/kalibrium.git
Documentation: pkg.go.dev

# Functions

ConvertToBanningProtocolErrorIfRuleError converts the given error to a banning protocol error if it's a rule error, and otherwise keep it as is.
Errorf formats according to a format specifier and returns the string as a ProtocolError.
New returns a ProtocolError with the supplied message.
Wrap wraps the given error and returns it as a ProtocolError.
Wrapf wraps the given error with the given format and returns it as a ProtocolError.

# Structs

ProtocolError is an error that signifies a violation of the peer-to-peer protocol.