DEVELOPMENT ENVIRONMENT

~liljamo/deck-builder

ref: 2d16028264d16c23fb4bf1569b81b673c3374d3d deck-builder/sdbapi/apierror/apierror.go -rw-r--r-- 1.2 KiB
2d160282Jonni Liljamo feat(sdbapi): endpoint for joining games 1 year, 8 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
 * This file is part of sdbapi
 * Copyright (C) 2022 Jonni Liljamo <jonni@liljamo.com>
 *
 * Licensed under GPL-3.0-only.
 * See LICENSE for licensing information.
 */

package apierror

const (
	Placeholder        string = "placeholder"
	InvalidInput       string = "invalid input"
	UserNotFound       string = "user not found"
	InvalidCred        string = "invalid credentials"
	NewJWTError        string = "jwt creation error"
	UsernameTooShort   string = "username should not be shorter than 3 characters"
	EmailInvalid       string = "invalid email address"
	PasswordTooShort   string = "password should not be shorter than 8 characters"
	PasswordHashFailed string = "password hash failed"
	UserCreationFailed string = "user creation failed"
	NotAuthorized      string = "not authorized"
	GameNotFound       string = "game not found"
	GameCreationFailed string = "game creation failed"
	GetAllFormingFailed string = "something went wrong while fetching all forming games"
	GameStatePatchFailed string = "failed to patch game state"
	NoGamesForUser = "no games found for user"
	GameNotForming string = "game is not forming"
	CannotJoinOwnGame string = "can not join own game"
	GameFull string = "game is full"
)