typederror

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2023 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorType

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

func New

func New(label string, parent *ErrorType) *ErrorType

func NewRoot

func NewRoot(label string) *ErrorType

func (*ErrorType) Error

func (t *ErrorType) Error() string

func (*ErrorType) Is

func (t *ErrorType) Is(target error) bool

Is returns true, if and only if the label and parent of two ErrorType equal.

func (*ErrorType) Raise

func (t *ErrorType) Raise(err error) error

func (*ErrorType) Unwrap

func (t *ErrorType) Unwrap() error

Jump to

Keyboard shortcuts

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