gameError

package
v0.0.0-...-6b053b6 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PanicError

func PanicError(code int, Desc ...string)

func WriteError

func WriteError(w writer, id string, code int, Desc ...string)

Types

type ErrCode

type ErrCode struct {
	ErrorCode      int
	DescribeString string
}

func RenderError

func RenderError(code int, Desc ...string) *ErrCode

func RenderServerError

func RenderServerError(Desc string) *ErrCode

func (*ErrCode) ToSysError

func (err *ErrCode) ToSysError() error

Jump to

Keyboard shortcuts

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