errors

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBadRequestError

func NewBadRequestError(msg string, e error) error

func NewForbiddenError

func NewForbiddenError(msg string, e error) error

func NewInternalError

func NewInternalError(msg string, e error) error

func NewMethodNotAllowedError

func NewMethodNotAllowedError(msg string, e error) error

func NewNotFoundError

func NewNotFoundError(msg string, e error) error

func NewServiceUnavailableError

func NewServiceUnavailableError(msg string, e error) error

func NewUnauthenticatedError

func NewUnauthenticatedError(msg string, e error) error

Types

type AppError

type AppError struct {
	Msg        string
	StatusCode int
	Err        error
}

func (*AppError) Error

func (e *AppError) Error() string

func (*AppError) JSONResponse

func (e *AppError) JSONResponse() apiv1.Error

func (*AppError) Unwrap

func (e *AppError) Unwrap() error

Jump to

Keyboard shortcuts

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