errors

package
v0.0.0-...-d9433bb Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FiberErr

type FiberErr uint32
const (
	ErrBadRequest              FiberErr = 10400
	ErrUnauthorized            FiberErr = 10401
	ErrInactiveUser            FiberErr = 10604
	ErrForbidden               FiberErr = 10403
	ErrUnprocessableEntity     FiberErr = 10422
	ErrPayloadValidationFailed FiberErr = 10423
	ErrInternalServerError     FiberErr = 10500
)

func (FiberErr) Code

func (fe FiberErr) Code() uint32

Code - returns predefined custom code attached to the FiberErr constant that it was called upon.

func (FiberErr) Map

func (fe FiberErr) Map() fiber.Map

Map - Returns predefined fiber.Map based on the FiberErr constant that it was called upon.

Jump to

Keyboard shortcuts

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