failure

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0, MIT Imports: 5 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Failure

type Failure interface {
	error
	Named
}

type IPLDBuilderFailure

type IPLDBuilderFailure interface {
	IPLDConvertableError
	Failure
}

func FromError

func FromError(err error) IPLDBuilderFailure

func FromFailureModel

func FromFailureModel(model datamodel.FailureModel) IPLDBuilderFailure

type IPLDConvertableError

type IPLDConvertableError interface {
	error
	ipld.Builder
}

IPLDConvertableError is an error with a custom method to convert to an IPLD Node

type Named

type Named interface {
	Name() string
}

Named is an error that you can read a name from

type NamedWithStackTrace

type NamedWithStackTrace interface {
	Named
	WithStackTrace
}

func NamedWithCurrentStackTrace

func NamedWithCurrentStackTrace(name string) NamedWithStackTrace

type WithStackTrace

type WithStackTrace interface {
	Stack() string
}

WithStackTrace is an error that you can read a stack trace from

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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