errors

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	As = errors.As
	Is = errors.Is
)

Functions

This section is empty.

Types

type ErrorModel

type ErrorModel struct {
	ErrorName string
	Message   string
}

func New

func New(name, message string, args ...any) ErrorModel

New creates an IPLD error that has a name as well as a message.

func (ErrorModel) Error

func (em ErrorModel) Error() string

func (ErrorModel) Name

func (em ErrorModel) Name() string

func (ErrorModel) ToIPLD

func (em ErrorModel) ToIPLD() (datamodel.Node, error)

Jump to

Keyboard shortcuts

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