exception

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Http

type Http struct {
	Status int
	Msg    string
}

func AdapterHttpError

func AdapterHttpError(err error) Http

func BadGateway

func BadGateway(msg string) Http

func BadRequest

func BadRequest(msg string) Http

func Conflict

func Conflict(msg string) Http

func ContentTooLarge

func ContentTooLarge(msg string) Http

func ExpectationFailed

func ExpectationFailed(msg string) Http

func FailedDependency

func FailedDependency(msg string) Http

func Forbidden

func Forbidden(msg string) Http

func GatewayTimeout

func GatewayTimeout(msg string) Http

func Gone

func Gone(msg string) Http

func HttpVersionNotSupported

func HttpVersionNotSupported(msg string) Http

func IamATeapot

func IamATeapot(msg string) Http

func InternalServer

func InternalServer(msg string) Http

func LengthRequired

func LengthRequired(msg string) Http

func Locked

func Locked(msg string) Http

func MethodNotAllowed

func MethodNotAllowed(msg string) Http

func NotAcceptable

func NotAcceptable(msg string) Http

func NotFound

func NotFound(msg string) Http

func NotImplemented

func NotImplemented(msg string) Http

func PreconditionFailed

func PreconditionFailed(msg string) Http

func PreconditionRequired

func PreconditionRequired(msg string) Http

func RequestTimeout

func RequestTimeout(msg string) Http

func RequestURITooLong

func RequestURITooLong(msg string) Http

func RequestedRangeNotSatisfiable

func RequestedRangeNotSatisfiable(msg string) Http

func ServiceUnavailable

func ServiceUnavailable(msg string) Http

func Throw

func Throw(msg string, status int) Http

func TooManyRequests

func TooManyRequests(msg string) Http

func Unauthorized

func Unauthorized(msg string) Http

func UnprocessableEntity

func UnprocessableEntity(msg string) Http

func UnsupportedMediaType

func UnsupportedMediaType(msg string) Http

func UpgradeRequired

func UpgradeRequired(msg string) Http

func (Http) Error

func (e Http) Error() string

Jump to

Keyboard shortcuts

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