errdefs

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	/*
	   Usecase errors
	*/
	ErrInvalidData        = errors.New("data provided is invalid")
	ErrRoomIsFull         = errors.New("room is already at its maximum capacity of player")
	ErrBindUserRoomFailed = errors.New("an error occurred while associating user to room")
	ErrForbbidenAccess    = errors.New("unauthorized access")
	ErrUserAuthInvalid    = errors.New("user authentication failed")
	ErrInternalServer     = errors.New("internal server error")

	/*
	   Database-specific errors
	*/
	ErrDatabaseFailed          = errors.New("an error occurred while connecting with the database")
	ErrRoomDoesNotExist        = errors.New("tried to access/modify room data but room did not exist")
	ErrRoomContainsInvalidData = errors.New("a field in the room has invalid data saved on it")

	/*
	   ConnectRPC type conversion errors
	*/
	ErrEventTypeInvalid  = errors.New("an invalid event type was received")
	ErrUlidInvalid       = errors.New("the event ULID is invalid")
	ErrRoomStatusInvalid = errors.New("received an invalid room status number")
)

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