Documentation
¶
Index ¶
Constants ¶
View Source
const ErrorCritical = 10 // ErrorCritical Some error in code
View Source
const ErrorCustomError = 3 // ErrorCustomError Custom api_errors that will continue the flow
View Source
const ErrorIncorrectVerifyCode = 4 // ErrorIncorrectVerifyCode Incorrect verify code or code is no longer in redis
View Source
const ErrorInvalidAccess = 6 // ErrorInvalidAccess Invalid access
View Source
const ErrorInvalidRequest = 2 // ErrorInvalidRequest Request does not meet the requirements
View Source
const ErrorNoError = -1
View Source
const ErrorNotFound = 11 // ErrorNotFound Object not found in db
View Source
const ErrorUnableAddData = 0 // ErrorUnableAddData Unable to add data to the table
View Source
const ErrorUnableGetData = 5 // ErrorUnableGetData Unable to get data from the table
View Source
const ErrorUnableSendMessage = 1 // ErrorUnableSendMessage Unable to send message
View Source
const ErrorUserIsNotVerify = 8 // ErrorUserIsNotVerify User in db is not active
View Source
const ErrorUserNotFound = 7 // ErrorUserNotFound User not found in db
Variables ¶
View Source
var CustomErrorMap map[int32]CustomError
Functions ¶
func GetCustomError ¶
func GetCustomError(msg string, code int32) (*responses.ErrorResponse, int)
func Init ¶
func Init(additionalErrorsMap map[int32]CustomError)
Types ¶
type CustomError ¶
Click to show internal directories.
Click to hide internal directories.