exceptions

package
v0.0.0-...-31ddaea Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MapToHttpStatusCode

func MapToHttpStatusCode(status Status) int

Types

type CustomError

type CustomError struct {
	Status Status
	Errors *multierror.Error
}

type Status

type Status int
const (
	ERRDOMAIN     Status = 1
	ERRBUSSINESS  Status = 2
	ERRSYSTEM     Status = 3
	ERRNOTFOUND   Status = 4
	ERRREPOSITORY Status = 5
	ERRUNKNOWN    Status = 6
	ERRAUTHORIZED Status = 7
	ERRFORBIDDEN  Status = 8
)

Jump to

Keyboard shortcuts

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