failure

package
v0.0.0-...-453b34a Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrNotFound  errcode = "NotFound"
	ErrInvalid   errcode = "InvalidArgument"
	ErrForbidden errcode = "Forbidden"
	ErrConflict  errcode = "Conflict"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AppError

type AppError struct {
	Code errcode
	// contains filtered or unexported fields
}

func Conflict

func Conflict(err error) *AppError

func Forbidden

func Forbidden(err error) *AppError

func Invalid

func Invalid(err error) *AppError

func NotFound

func NotFound(err error) *AppError

func (*AppError) Error

func (e *AppError) Error() string

func (*AppError) Unwrap

func (e *AppError) Unwrap() error

Jump to

Keyboard shortcuts

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