errors

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Unauthorized  ErrorKindEnum = "Unauthorized"
	InternalError               = "InternalError"
	BadRequest                  = "BadRequest"
	Conflict                    = "Conflict"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorKindEnum

type ErrorKindEnum string

type GimmeError

type GimmeError struct {
	Kind  ErrorKindEnum
	Error error
}

func NewError

func NewError(kind ErrorKindEnum, err error) *GimmeError

func (GimmeError) GetHTTPCode

func (err GimmeError) GetHTTPCode() int

func (GimmeError) String

func (err GimmeError) String() string

Jump to

Keyboard shortcuts

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