customerrors

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomErrors

type CustomErrors struct {
	Error      string
	StatusCode int
}

type Errors

type Errors struct {
	DefaultStatusCode int
	CustomErrors      map[string]CustomErrors
}

func AddErrors

func AddErrors(customErrors map[string]CustomErrors, defaultStatusCode ...int) (err Errors)

func (Errors) ReturnError

func (e Errors) ReturnError(err error) (string, int)

Jump to

Keyboard shortcuts

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