gerrors

package
v1.1.15 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 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 CodeError

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

func NewCodeError

func NewCodeError(code int, err error) *CodeError

func NewCodeErrorOfMessage

func NewCodeErrorOfMessage(code int, msg string) *CodeError

func NewCodeErrorOfMessagef

func NewCodeErrorOfMessagef(code int, format string, args ...interface{}) *CodeError

func NewCodeErrorWarp

func NewCodeErrorWarp(code int, msg string, err error) *CodeError

func (*CodeError) Code

func (ce *CodeError) Code() int

func (*CodeError) Err

func (ce *CodeError) Err() error

func (*CodeError) Error

func (ce *CodeError) Error() string

func (*CodeError) Msg

func (ce *CodeError) Msg() string

func (*CodeError) Unwrap added in v1.1.13

func (ce *CodeError) Unwrap() error

type PanicError added in v1.1.1

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

func NewPanicError added in v1.1.1

func NewPanicError(msg interface{}, stack string) *PanicError

func (*PanicError) Error added in v1.1.1

func (pe *PanicError) Error() string

Jump to

Keyboard shortcuts

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