common_errors

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2021 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenericApplicationError

type GenericApplicationError interface {
	Error() string
	HttpStatus() int
}

func NewBadRequestError

func NewBadRequestError(message string) GenericApplicationError

func NewForbiddenError

func NewForbiddenError(message string) GenericApplicationError

func NewGenericBadRequestError

func NewGenericBadRequestError() GenericApplicationError

func NewGenericForbiddenError

func NewGenericForbiddenError() GenericApplicationError

func NewGenericInternalServerError

func NewGenericInternalServerError() GenericApplicationError

func NewGenericNotFoundError

func NewGenericNotFoundError() GenericApplicationError

func NewGenericPreconditionFailedError

func NewGenericPreconditionFailedError() GenericApplicationError

func NewGenericUnauthorizedError

func NewGenericUnauthorizedError() GenericApplicationError

func NewInternalServerError

func NewInternalServerError(message string) GenericApplicationError

func NewNotFoundError

func NewNotFoundError(message string) GenericApplicationError

func NewPreconditionFailedError

func NewPreconditionFailedError(message string) GenericApplicationError

func NewUnauthorizedError

func NewUnauthorizedError(message string) GenericApplicationError

Jump to

Keyboard shortcuts

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