statuserr

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BadRequestError

func BadRequestError(err error, messages ...string) error

func ForbiddenError

func ForbiddenError(err error, messages ...string) error

func InternalServerError

func InternalServerError(err error, messages ...string) error

func JoinError

func JoinError(status int32, message string, err error) error

func NewError

func NewError(status, code int32, message string, err error) error

func NotFoundError

func NotFoundError(err error, messages ...string) error

func UnauthorizedError

func UnauthorizedError(err error, messages ...string) error

func WithStatus

func WithStatus(status int32, err error, messages ...string) error

Types

type CodeError

type CodeError interface {
	error
	GetCode() int32
}

type MessageError

type MessageError interface {
	error
	GetMessage() string
}

type StatusError

type StatusError interface {
	error
	GetStatus() int32
}

Jump to

Keyboard shortcuts

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