try

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Catch

func Catch(errRef *error)

func CatchFunc

func CatchFunc(fn func(e *Error))

func Try

func Try(err error)

func Try1

func Try1[A any](a A, err error) A

Types

type Error

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

Error represents an error that occurred during a Try operation.

func (*Error) Error

func (e *Error) Error() string

func (*Error) Frame

func (e *Error) Frame() runtime.Frame

Frame returns the frame of the caller of the function that called Try.

func (*Error) Unwrap

func (e *Error) Unwrap() error

Jump to

Keyboard shortcuts

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