e

package
v0.0.0-...-14942be Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 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 Error

type Error struct {
	Code int
	Msg  string
	Err  error
}

func ErrBadRequest

func ErrBadRequest() *Error

func ErrForbidden

func ErrForbidden() *Error

func ErrInternalServer

func ErrInternalServer() *Error

func ErrInvalidRequestBody

func ErrInvalidRequestBody() *Error

func ErrNotFound

func ErrNotFound() *Error

func ErrUnauthorized

func ErrUnauthorized() *Error

func New

func New(code int, msg string) *Error

func (*Error) Error

func (e *Error) Error() string

func (*Error) WithErr

func (e *Error) WithErr(err error) *Error

func (*Error) WithMsg

func (e *Error) WithMsg(msg string) *Error

Jump to

Keyboard shortcuts

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