errors

package
v0.0.0-...-242d932 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2020 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 ApplicationError

type ApplicationError struct {
	Message string `json:message`
	Status  int    `json:status`
	Error   string `json:string`
}

func AlreadyExist

func AlreadyExist(message string) *ApplicationError

func BadRequest

func BadRequest(message string) *ApplicationError

func Forbiden

func Forbiden(message string) *ApplicationError

func InternalServer

func InternalServer(message string) *ApplicationError

func NotFound

func NotFound(message string) *ApplicationError

func Unauthorized

func Unauthorized(message string) *ApplicationError

Jump to

Keyboard shortcuts

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