Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // system InternalError = NewError("internal error").HTTP(http.StatusInternalServerError) // network errors NetworkBadURL = NewError("bad url") NetworkBadRequest = NewError("bad http request") NetworkBadResponse = NewError("bad http response") BadName = NewError("bad name").HTTP(http.StatusBadRequest) BadId = NewError("bad id").HTTP(http.StatusBadRequest) // game GameExist = NewError("game exist").HTTP(http.StatusBadRequest) GameNotExists = NewError("game not exists").HTTP(http.StatusNoContent) GameInfoNotExists = NewError("game info not exists") GameImageNotExists = NewError("game image not exists").HTTP(http.StatusNoContent) // collection CollectionExist = NewError("collection exist").HTTP(http.StatusBadRequest) CollectionNotExists = NewError("collection not exists").HTTP(http.StatusNoContent) CollectionInfoNotExists = NewError("collection info not exists") CollectionImageNotExists = NewError("collection image not exists").HTTP(http.StatusNoContent) // deck DeckExist = NewError("deck exist").HTTP(http.StatusBadRequest) DeckNotExists = NewError("deck not exists").HTTP(http.StatusNoContent) DeckImageNotExists = NewError("deck image not exists").HTTP(http.StatusNoContent) // card CardExists = NewError("card exists").HTTP(http.StatusInternalServerError) CardNotExists = NewError("card not exists").HTTP(http.StatusNoContent) CardImageNotExists = NewError("card image not exists").HTTP(http.StatusNoContent) // image UnknownImageType = NewError("unknown image type").HTTP(http.StatusBadRequest) // zip BadArchive = NewError("bad zip archive").HTTP(http.StatusBadRequest) )
Functions ¶
func IfErrorLog ¶
func IfErrorLog(err error)
Types ¶
Click to show internal directories.
Click to hide internal directories.