Documentation ¶
Index ¶
Constants ¶
View Source
const ( SuccessCode = 0 ServiceErrCode = 10001 ParamErrCode = 10002 UserAlreadyExistErrCode = 10003 AuthorizationFailedErrCode = 10004 )
Variables ¶
View Source
var ( Success = NewErrNo(SuccessCode, "Success") ServiceErr = NewErrNo(ServiceErrCode, "Service is unable to start successfully") ParamErr = NewErrNo(ParamErrCode, "Wrong Parameter has been given") UserAlreadyExistErr = NewErrNo(UserAlreadyExistErrCode, "User already exists") AuthorizationFailedErr = NewErrNo(AuthorizationFailedErrCode, "Authorization failed") )
Functions ¶
This section is empty.
Types ¶
type ErrNo ¶
func (ErrNo) WithMessage ¶
Click to show internal directories.
Click to hide internal directories.