errors

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

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

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 NewBusinessError added in v1.1.0

func NewBusinessError(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