errors

package
v0.0.0-...-b9a316c Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2022 License: MIT Imports: 0 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
	Message string
	Payload map[string]interface{}
}

Error represents an error.

func (Error) Error

func (err Error) Error() string

type Type

type Type int

Type represents the type of error.

const (
	NotFound Type = iota
	NotPut
	NotDeleted
	NotMatched
	Unauthorized
	Invalid
	AlreadyExists
	FailedMarshal
	FailedHash
	Unknown
)

Possible types of errors.

Jump to

Keyboard shortcuts

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