errs

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsConnClosedErr

func IsConnClosedErr(err error) bool

see https://github.com/golang/go/issues/4373 for details

func NewSilentErr

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

func WrapSilent

func WrapSilent(wrappedErr error) error

Types

type SilentError

type SilentError struct {
	// contains filtered or unexported fields
}

SilentError is an error wrapper type that silences an errors and only log 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL