errorz

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
	Type     Type              `json:"type"`
	Info     string            `json:"info"`
	Err      error             `json:"err"`
	Metadata map[string]string `json:"metadata"`
}

func (Error) Log

func (e Error) Log(logger *logger.Logger)

func (Error) Public

func (e Error) Public() error

type Type

type Type int
const (
	ErrUnknown         Type = 0
	ErrUnauthenticated Type = 1
	ErrUnauthorized    Type = 2
	ErrNotFound        Type = 5
	ErrTimeout         Type = 6
	ErrLocked          Type = 7
)

Jump to

Keyboard shortcuts

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