errors

package
v0.0.0-...-9de8873 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Drain

func Drain(ch <-chan error) (arr []error)

Types

type SensorError

type SensorError struct {
	Op      string        `json:"op"`
	Kind    string        `json:"kind"`
	Next    *SensorError  `json:"next,omitempty"`
	Wrapped *WrappedError `json:"wrapped,omitempty"`
}

func SE

func SE(op string, kind string, err error) *SensorError

func (*SensorError) Error

func (e *SensorError) Error() string

type WrappedError

type WrappedError struct {
	Type string `json:"type"`
	Info string `json:"info"`
	File string `json:"file"`
	Line int    `json:"line"`
}

Jump to

Keyboard shortcuts

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