errs

package
v0.0.0-...-f5f50e8 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2021 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorFromHRESULT

func ErrorFromHRESULT(funcName string, hr win.HRESULT) error

func LastError

func LastError(win32FuncName string) error

func LogErrors

func LogErrors() bool

func NewError

func NewError(message string) error

func NewErrorNoPanic

func NewErrorNoPanic(message string) error

func PanicOnError

func PanicOnError() bool

func SetLogErrors

func SetLogErrors(v bool)

func SetPanicOnError

func SetPanicOnError(v bool)

func WrapError

func WrapError(err error) error

func WrapErrorNoPanic

func WrapErrorNoPanic(err error) error

Types

type Error

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

func (*Error) Error

func (err *Error) Error() string

func (*Error) Inner

func (err *Error) Inner() error

func (*Error) Message

func (err *Error) Message() string

func (*Error) Stack

func (err *Error) Stack() []byte

Jump to

Keyboard shortcuts

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