error

package
v0.0.0-...-aec1c34 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

View Source
var (
	// ErrWrongCred should be used when client enters wrong credentials
	ErrWrongCred = errors.New("wrong credentials")

	// ErrTokenExpired should be used whenever the system detects expired token(access/refresh)
	ErrTokenExpired = errors.New("token has expired")

	// ErrApplication should be used in case server failed to process any request and
	// sensitive err info are intended to be kept hidden from the client.
	ErrApplication = errors.New("server encountered some issue, please contact the Admin")

	ErrInsufficientPerm = errors.New("insufficient permission")

	// ErrInvalidReqBody should be used when request body
	// does not match expected fields
	ErrInvalidReqBody = errors.New("invalid request body")
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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