-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Musilah <[email protected]>
- Loading branch information
Musilah
committed
Nov 8, 2023
1 parent
a03b656
commit d206fbc
Showing
2 changed files
with
84 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
package api | ||
|
||
import "github.com/mainflux/mainflux/pkg/errors" | ||
|
||
var ( | ||
errAuthorization = errors.New("missing or invalid credentials provided") | ||
errAuthentication = errors.New("failed to perform authentication over the entity") | ||
errMissingSecret = errors.New("missing secret") | ||
errMissingIdentity = errors.New("missing entity identity") | ||
errLimitSize = errors.New("invalid limit size") | ||
errMissingConfigID = errors.New("missing config id") | ||
errPageSize = errors.New("invalid page size") | ||
errMissingEmail = errors.New("missing email") | ||
errMissingName = errors.New("missing name") | ||
errMissingPassword = errors.New("missing password") | ||
errMissingMetadata = errors.New("missing entity metadata") | ||
errMissingConfirmPassword = errors.New("missing confirm password") | ||
errInvalidResetPassword = errors.New("invalid reset password") | ||
errNameSize = errors.New("invalid name size") | ||
errBearerKey = errors.New("missing or invalid bearer entity key") | ||
errMissingOwner = errors.New("missing owner") | ||
errMissingThingID = errors.New("missing thing id") | ||
errMissingItem = errors.New("missing item") | ||
errMissingChannelID = errors.New("missing channel id") | ||
errMissingUserID = errors.New("missing user id") | ||
errMissingRelation = errors.New("missing relation") | ||
errMissingGroupID = errors.New("missing group id") | ||
errMissingParentID = errors.New("missing parent id") | ||
errMissingDescription = errors.New("missing description") | ||
errMissingThingKey = errors.New("missing thing key") | ||
errMissingExternalID = errors.New("missing external id") | ||
errMissingExternalKey = errors.New("missing external key") | ||
errMissingChannel = errors.New("missing channel") | ||
errMissingPayload = errors.New("missing payload") | ||
errMissingError = errors.New("missing error") | ||
errMissingRefreshToken = errors.New("missing refresh token") | ||
errMissingRef = errors.New("missing ref") | ||
errConflict = errors.New("entity already exists") | ||
errInvalidQueryParams = errors.New("invalid query parameters") | ||
errFileFormat = errors.New("invalid file format") | ||
errInvalidFile = errors.New("unsupported file type") | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters