errs

package
v0.0.0-...-ff54fb6 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2021 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 `json:"message"`
}

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 (e AppError) AsMessage() *AppError

Jump to

Keyboard shortcuts

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