Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrMissingConfig = errors.New("config is missing")
)
Functions ¶
func IsConnClosedErr ¶
see https://github.com/golang/go/issues/4373 for details
func NewSilentErr ¶
func WrapSilent ¶
Types ¶
type SilentError ¶
type SilentError struct {
// contains filtered or unexported fields
}
SilentError is an error wrapper type that silences an error and only logs them in the debug log.
It is usually used to prevent spamming the default log when Minecraft clients send invalid packets which cannot be read.
func (*SilentError) Error ¶
func (e *SilentError) Error() string
func (*SilentError) Unwrap ¶
func (e *SilentError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.