exerrors

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Must

func Must[T any](val T, err error) T

func Must2

func Must2[T any, T2 any](val T, val2 T2, err error) (T, T2)

func PanicIfNotNil

func PanicIfNotNil(err error)

Types

type DualError

type DualError struct {
	High error
	Low  error
}

func NewDualError

func NewDualError(high, low error) DualError

func (DualError) Error

func (err DualError) Error() string

func (DualError) Is

func (err DualError) Is(other error) bool

func (DualError) Unwrap

func (err DualError) Unwrap() error

Jump to

Keyboard shortcuts

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