exterr

package
v0.0.0-...-a992749 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: GPL-3.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 ExtendedError

type ExtendedError struct {
	Code    int
	Message string
}

func ErrorBadRequest

func ErrorBadRequest(message string) *ExtendedError

func ErrorForbidden

func ErrorForbidden(message string) *ExtendedError

func ErrorInternalServer

func ErrorInternalServer(message string) *ExtendedError

func ErrorNotFound

func ErrorNotFound(message string) *ExtendedError

func ErrorUnauthorized

func ErrorUnauthorized(message string) *ExtendedError

func NewExtendedError

func NewExtendedError(code int, message string) *ExtendedError

func (*ExtendedError) Error

func (e *ExtendedError) Error() string

Jump to

Keyboard shortcuts

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