apperror

package
v1.3.6 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: LGPL-2.1 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BadRequest

func BadRequest(message string) error

func Forbidden

func Forbidden(message string) error

func Internal

func Internal(message string) error

func NotFound added in v1.2.0

func NotFound(message string) error

func Unauthorized

func Unauthorized(message string) error

Types

type ErrorCode

type ErrorCode int
const (
	UnauthorizedError ErrorCode = 4001
	ForbiddenError    ErrorCode = 4003
	BadRequestError   ErrorCode = 4003
	InternalError     ErrorCode = 5000
	NotFoundError     ErrorCode = 4004
)

Jump to

Keyboard shortcuts

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