sprawl: github.com/sprawl/sprawl/errors Index | Files

package errors

import "github.com/sprawl/sprawl/errors"

Index

Package Files

debug.go errors.go

func E Uses

func E(argument interface{}, arguments ...interface{}) error

func Errorf Uses

func Errorf(format string, args ...interface{}) error

package for all error handling.

func IsEmpty Uses

func IsEmpty(err error) bool

func SetDebug Uses

func SetDebug(debugOn bool)

func StringToError Uses

func StringToError(text string) error

Str returns an error that formats as the given text. It is intended to be used as the error-typed argument to the E function.

type Error Uses

type Error struct {
    Op   Op
    Kind Kind
    Err  error
    // contains filtered or unexported fields
}

func (*Error) Error Uses

func (e *Error) Error() string

type Kind Uses

type Kind uint8
const (
    Ignore Kind = iota //Unclassified
    Placeholder
)

func (Kind) String Uses

func (k Kind) String() string

type Op Uses

type Op string

Package errors imports 3 packages (graph) and is imported by 3 packages. Updated 2019-12-12. Refresh now. Tools for package owners.