apperror

package
v0.0.0-...-b805d9c Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppError

type AppError struct {
	Code    int
	Message string
}

func BadRequest

func BadRequest(message string) *AppError

func Forbidden

func Forbidden(message string) *AppError

func InternalServerError

func InternalServerError() *AppError

func NewAppError

func NewAppError(code int, message string) *AppError

func NotFound

func NotFound(message string) *AppError

func Unauthorized

func Unauthorized(message string) *AppError

func (*AppError) Error

func (r *AppError) Error() string

Jump to

Keyboard shortcuts

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