Versions in this module Expand all Collapse all v0 v0.0.2 Nov 22, 2019 Changes in this version + var ErrAlreadyApplied = errors.New("the user has applied") + var ErrAlreadyInvited = errors.New("the user has been invited") + var ErrAlreadyJoinedInTeam = errors.New("the user has joined the team") + var ErrContestEnded = errors.New("the contest has ended") + var ErrContestPending = errors.New("the contest is pending") + var ErrContestStarted = errors.New("the contest has started") + var ErrCoolDown = errors.New("cooling down") + var ErrCreateResourceFile = errors.New("error occurs when create resource file") + var ErrDangerousOperation = errors.New("dangerous operation") + var ErrDatabaseConnection = errors.New("database connection error") + var ErrDuplicatedAlias = errors.New("duplicated alias") + var ErrDuplicatedEmail = errors.New("duplicated email") + var ErrDuplicatedName = errors.New("duplicated name") + var ErrDuplicatedUsername = errors.New("duplicated username") + var ErrEmptyConfigKey = errors.New("empty config key") + var ErrInvalidCaptcha = errors.New("invalid captcha") + var ErrInvalidCaptchaFor = errors.New("invalid captcha for") + var ErrInvalidFlagSettings = errors.New("invalid flag settings") + var ErrInvalidFlagType = errors.New("invalid flag type") + var ErrInvalidInvitationToken = errors.New("invalid invitation token") + var ErrInvalidRequest = errors.New("invalid request") + var ErrLoggedIn = errors.New("the session has been logged with an account") + var ErrMemberParticipated = errors.New("some member has participated the specific contest") + var ErrNoSuchApplication = errors.New("no such application") + var ErrNotAdminOfTeam = errors.New("not team's admin") + var ErrNotEnoughPoints = errors.New("not enough points") + var ErrNotFound = errors.New("entry not found") + var ErrNotInWhitelist = errors.New("not in whitelist") + var ErrNotInvited = errors.New("the user has not been invited to this team") + var ErrNotLoggedIn = errors.New("the session hasn't been logged in yet") + var ErrNotMemberOfTeam = errors.New("not a member of team") + var ErrOutOfRange = errors.New("parameter out of range") + var ErrPartlyFailed = errors.New("procedure partly failed") + var ErrPermissionDenied = errors.New("permission denied") + var ErrProcessed = errors.New("the resource has been processed") + var ErrRedisConnection = errors.New("redis connection error") + var ErrSessionExpired = errors.New("the session is expired") + var ErrTeamParticipated = errors.New("your team has participated the contest") + var ErrTimeout = errors.New("the resource has expired") + var ErrUnableToMarshal = errors.New("unable to marshal the struct into JSON") + var ErrUnableToUnmarshal = errors.New("unable to unmarshal the struct into JSON") + var ErrUserNotFound = errors.New("user not found") + var ErrWriteConfigFile = errors.New("fail to write config file") + var ErrWriteResourceFile = errors.New("error occurs when write resource file") + var ErrWrongPassword = errors.New("wrong password") v0.0.1 Nov 22, 2019