exception

package
v0.0.0-...-f41e87c Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// User
	UserAlreadyExists               = "userAlreadyExists"
	UserNotFound                    = "userNotFound"
	UserNotRegistered               = "userNotRegistered"
	CredentialsInvalid              = "credentialsInvalid"
	FailedLoginLimitExceeded        = "failedLoginLimitExceeded"
	ChallengeNotFound               = "challengeNotFound"
	FailedVerificationLimitExceeded = "failedVerificationLimitExceeded"
	UserVerificationIncomplete      = "userVerificationIncomplete"
	VerificationFailed              = "verificationFailed"
	TooManyChallengeRequests        = "tooManyChallengeRequests"
	EmailIdInvalid                  = "emailIdInvalid"
	PhoneNumberInvalid              = "phoneNumberInvalid"

	// Cron
	MinuteIsInvalid    = "minuteIsInvalid"
	HourIsInvalid      = "hourIsInvalid"
	DayOfWeekIsInvalid = "dayOfWeekIsInvalid"

	// Identity
	IdentityTypeNotFound = "identityTypeNotFound"

	// Generic
	Unauthorised        = "unauthorised"
	Forbidden           = "forbidden"
	NotFound            = "notFound"
	InternalServerError = "internalServerError"
	Conflict            = "conflict"
	IdInvalid           = "idInvalid"
)

Variables

View Source
var ErrConflict = errors.New(Conflict)
View Source
var ErrIdInvalid = errors.New(IdInvalid)
View Source
var ErrNotFound = errors.New(NotFound)

Functions

func HttpStatus

func HttpStatus(code string) int

func Message

func Message(code string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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