errors

package
v0.0.0-...-f242e82 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MatchStatus

func MatchStatus(err error, s string) bool

Types

type AppError

type AppError struct {
	HTTPStatusCode int
	Status         string
	Message        string
}

func Destruct

func Destruct(err error) *AppError

func New

func New(httpStatusCode int, status string, message string) *AppError

func (*AppError) Error

func (e *AppError) Error() string

Error implements error.

Jump to

Keyboard shortcuts

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