cerror

package
v0.0.0-...-061a1bd Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomError

type CustomError struct {
	// contains filtered or unexported fields
}

func GetCustomError

func GetCustomError(err error) *CustomError

func NewBadRequestError

func NewBadRequestError(message ErrorMessage) CustomError

func NewForbiddenError

func NewForbiddenError(message ErrorMessage) CustomError

func NewInternalError

func NewInternalError(message ErrorMessage) CustomError

func NewNotFoundError

func NewNotFoundError(message ErrorMessage) CustomError

func NewUnauthorizedError

func NewUnauthorizedError(message ErrorMessage) CustomError

func (CustomError) Error

func (ce CustomError) Error() string

func (CustomError) GetHTTPCode

func (ce CustomError) GetHTTPCode() int

type ErrorMessage

type ErrorMessage string

Jump to

Keyboard shortcuts

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