errors

package
v0.0.0-...-1047d84 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2019 License: ISC Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BufferOverflow = NewNetworkError("Attempted to read too much data from packet.")

BufferOverflow Error to return when we accidentally try to read from an empty packet.

View Source
var ConnClosed = NewNetworkError("Connection closed.")

ConnClosed Error to return when the connection closes normally.

View Source
var ConnDeadline = NewNetworkError("Connection deadline could not be set.")

ConnDeadline Error to return when the connection's deadline for reading data can not be properly set.

View Source
var ConnTimedOut = NewNetworkError("Connection timed out.")

ConnTimedOut Error to return when the connection is inactive for 10 seconds.

Functions

func NewDatabaseError

func NewDatabaseError(s string) error

NewDatabaseError Returns a new database-related error.

func NewNetworkError

func NewNetworkError(s string) error

NewNetworkError Returns a new NetError struct with the specified message.

Types

type DatabaseError

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

DatabaseError A database-related error.

func (DatabaseError) Error

func (e DatabaseError) Error() string

type NetError

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

NetError A RSCGo network-related error.

func (NetError) Error

func (e NetError) Error() string

Jump to

Keyboard shortcuts

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