Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewUserError ¶
func NewUserError(message string, errorType UserErrorType) error
Types ¶
type UserError ¶
type UserError struct { ErrorType UserErrorType Message string }
type UserErrorType ¶
type UserErrorType int
const ( VALIDATION_ERROR_TYPE UserErrorType = 1 SQL_ERROR_TYPE UserErrorType = 2 USER_EXISTS_TYPE UserErrorType = 3 USER_DOES_NOT_EXISTS_TYPE UserErrorType = 4 BAD_CREDENTIALS_ERROR UserErrorType = 5 INTERNAL_SERVER_ERROR_TYPE UserErrorType = 6 )
Click to show internal directories.
Click to hide internal directories.