neterr

package
v0.0.0-...-fe7a427 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReqErr

type ReqErr struct {
	// Status of the call http.Status*
	Status int
	// Msg is an optional message given more detailed
	// information on failture (if http.StatusBadeRequest -> tell me what is wrong)
	Msg string
	// Err is optional if Status is >= http.StatusInternalServerError
	Err error
}

ReqErr contain all information required for an api to return a usefull response to the client

func (ReqErr) Error

func (err ReqErr) Error() string

Jump to

Keyboard shortcuts

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