errors

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	IsBadRequest         = errors.IsBadRequest
	IsUnauthorized       = errors.IsUnauthorized
	IsForbidden          = errors.IsForbidden
	IsNotFound           = errors.IsNotFound
	IsConflict           = errors.IsConflict
	IsInternalServer     = errors.IsInternalServer
	IsServiceUnavailable = errors.IsServiceUnavailable
	IsGatewayTimeout     = errors.IsGatewayTimeout
	IsClientClosed       = errors.IsClientClosed
)

alias

Functions

func BadRequest

func BadRequest(message string) *errors.Error

func ClientClosed

func ClientClosed(message string) *errors.Error

func Conflict

func Conflict(message string) *errors.Error

func Forbidden

func Forbidden(message string) *errors.Error

func GatewayTimeout

func GatewayTimeout(message string) *errors.Error

func InternalServer

func InternalServer(message string) *errors.Error

func New added in v1.0.7

func New(code int, message string) *errors.Error

func NotFound

func NotFound(message string) *errors.Error

func ServiceUnavailable

func ServiceUnavailable(message string) *errors.Error

func Unauthorized

func Unauthorized(message string) *errors.Error

Types

This section is empty.

Jump to

Keyboard shortcuts

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