apierror

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2024 License: GPL-3.0 Imports: 0 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiError added in v0.0.14

type ApiError int
const (
	UnexpectedError ApiError = iota
	AccessDenied
	NotImplemented
	InvalidRequest
	DatabaseError
	InvalidObjectId
	NotEnoughtPermissions
	InvalidEmail
	ShortEmail
	NoAtEmail
	NoDotEmail
	NoAlphanumericPassword
	NoMayusMinusPassword
	InvalidToken
	CannotCreateValidationCode
	InvalidValidationCode
	InvalidPassword
	ShortPassword
	NoSpecialCharactersPassword
	ShortName
	LongName
	ShortDescription
	LongDescription
	UpdateParametersEqual
)

0 --> 999 | GENERAL ERRORS

const (
	UserAlreadyExists ApiError = iota + 1000
	UserNotupdated
	UserNotFound
	UserNotDeleted
	EmptyUsername
	EmptyUserPassword
	EmptyUserEmail
	UserAlreadyValidated
	UserNotAuthorized
)

1000 --> 1999 | USER ERRORS

const (
	EmptyProjectName ApiError = iota + 2000
	EmptyProjectDescription
	EmptyProjectOwner
	ProjectAlreadyExists
	ProjectNotFound
)

2000 --> 2999 | PROJECT ERRORS

const (
	TeamAlreadyExists ApiError = iota + 3000
	EmptyTeamName
	EmptyOwner
	OwnerNotFound
	TeamNotFound
	EmptyTeamDescription
	EmptyMember
	TeamEmpty
	UserIsAlreadyMember
	TeamSearchError
	UserIsNotMember
)

3000 --> 3999 | TEAM ERRORS

const (
	DeviceNotFound ApiError = iota + 5000
	CannotGenerateAuthToken
)

4000 --> 4999 | DEVICE ERRORS

Jump to

Keyboard shortcuts

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