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

package errors

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


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

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 12 packages. Updated 2020-02-20. Refresh now. Tools for package owners.