errs

package
v0.0.0-...-eafcd8e Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2021 License: Apache-2.0 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 `json:"message"`
}

func NewAuthenticatonError

func NewAuthenticatonError(message string) *AppError

func NewAuthorizationError

func NewAuthorizationError(message string) *AppError

func NewNotFoundError

func NewNotFoundError(message string) *AppError

func NewUnexpectedError

func NewUnexpectedError(message string) *AppError

func NewValidationError

func NewValidationError(message string) *AppError

func (AppError) AsMessage

func (a AppError) AsMessage() *AppError

Jump to

Keyboard shortcuts

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