error

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2020 License: MIT Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrAccountEmptyAuthHeader   = NewBadRequestError("Missing token in request header")
	ErrAccountInvalidAuthHeader = NewBadRequestError("Malformed token in request header")

	ErrInvalidToken = NewUnauthorizedError("The token is invalid")
	ErrTokenExpired = NewUnauthorizedError("The token has expired")
)

Functions

func NewBadRequestError

func NewBadRequestError(message ...interface{}) *echo.HTTPError

NewBadRequestError creates a new error with http.StatusBadRequest

func NewUnauthorizedError added in v0.8.1

func NewUnauthorizedError(message ...interface{}) *echo.HTTPError

NewUnauthorizedError creates a new error with http.StatusUnauthorized

func NewValidationError

func NewValidationError(message ...interface{}) *echo.HTTPError

NewValidationError creates a new error with http.StatusUnprocessableEntity

Types

This section is empty.

Jump to

Keyboard shortcuts

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