wserror

package
v0.1.15 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorCode

type ErrorCode int64
const (
	DefaultErr     ErrorCode = -99
	AlreadyInParty ErrorCode = 1
)

func (ErrorCode) WSErr

func (errorCode ErrorCode) WSErr(msgs ...string) WSError

type WSError

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

func Error

func Error(err error) WSError

func New

func New(code ErrorCode, msg string) WSError

func (WSError) Bytes

func (err WSError) Bytes() []byte

func (WSError) Error

func (err WSError) Error() string

error

func (WSError) ErrorCode

func (err WSError) ErrorCode() int64

func (WSError) String

func (err WSError) String() string

stringer

Jump to

Keyboard shortcuts

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