errs

package
v0.0.0-...-23bfaa2 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppError

type AppError struct {
	Code    int `json:",omitempty"`
	Message string
}

func NewAuthenticationError

func NewAuthenticationError(message string) *AppError

func NewAuthorizationError

func NewAuthorizationError(message string) *AppError

func NewInternalServerError

func NewInternalServerError(message string) *AppError

func NewNotFoundError

func NewNotFoundError(message string) *AppError

func NewValidationError

func NewValidationError(message string) *AppError

func (AppError) AsMessage

func (e AppError) AsMessage() *AppError

func (AppError) Error

func (e AppError) Error() string

Jump to

Keyboard shortcuts

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