ierrors

package
v0.0.0-...-9c6ac59 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2022 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 Wrapper

type Wrapper func(format string, v ...any) error

Wrapper returns a new error.

type WrapperBuilder

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

func NewWrapperBuilder

func NewWrapperBuilder() *WrapperBuilder

func (*WrapperBuilder) Build

func (s *WrapperBuilder) Build() Wrapper

func (*WrapperBuilder) Err

func (s *WrapperBuilder) Err(err error) *WrapperBuilder

Err sets an error wraps new error.

func (*WrapperBuilder) Msg

func (s *WrapperBuilder) Msg(format string, v ...any) *WrapperBuilder

Msg sets a common message added to new error.

Jump to

Keyboard shortcuts

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