// Code generated by "gcraft_stringer -type=ErrorType"; DO NOT EDIT.

package auth

import "strconv"

func _() {
	// An "invalid array index" compiler error signifies that the constant values have changed.
	// Re-run the stringer command to generate them again.
	var x [1]struct{}
	_ = x[WOW_SUCCESS-0]
	_ = x[WOW_FAIL_BANNED-3]
	_ = x[WOW_FAIL_UNKNOWN_ACCOUNT-4]
	_ = x[WOW_FAIL_INCORRECT_PASSWORD-5]
	_ = x[WOW_FAIL_ALREADY_ONLINE-6]
	_ = x[WOW_FAIL_NO_TIME-7]
	_ = x[WOW_FAIL_DB_BUSY-8]
	_ = x[WOW_FAIL_VERSION_INVALID-9]
	_ = x[WOW_FAIL_VERSION_UPDATE-10]
	_ = x[WOW_FAIL_INVALID_SERVER-11]
	_ = x[WOW_FAIL_SUSPENDED-12]
	_ = x[WOW_FAIL_FAIL_NOACCESS-13]
	_ = x[WOW_SUCCESS_SURVEY-14]
	_ = x[WOW_FAIL_PARENTCONTROL-15]
	_ = x[WOW_FAIL_LOCKED_ENFORCED-16]
	_ = x[WOW_FAIL_TRIAL_ENDED-17]
	_ = x[WOW_FAIL_USE_BATTLENET-18]
	_ = x[WOW_FAIL_ANTI_INDULGENCE-19]
	_ = x[WOW_FAIL_EXPIRED-20]
	_ = x[WOW_FAIL_NO_GAME_ACCOUNT-21]
	_ = x[WOW_FAIL_CHARGEBACK-22]
	_ = x[WOW_FAIL_INTERNET_GAME_ROOM_WITHOUT_BNET-23]
	_ = x[WOW_FAIL_GAME_ACCOUNT_LOCKED-24]
	_ = x[WOW_FAIL_UNLOCKABLE_LOCK-25]
	_ = x[WOW_FAIL_CONVERSION_REQUIRED-32]
	_ = x[WOW_FAIL_DISCONNECTED-255]
}

const (
	_ErrorType_name_0 = "WOW_SUCCESS"
	_ErrorType_name_1 = "WOW_FAIL_BANNEDWOW_FAIL_UNKNOWN_ACCOUNTWOW_FAIL_INCORRECT_PASSWORDWOW_FAIL_ALREADY_ONLINEWOW_FAIL_NO_TIMEWOW_FAIL_DB_BUSYWOW_FAIL_VERSION_INVALIDWOW_FAIL_VERSION_UPDATEWOW_FAIL_INVALID_SERVERWOW_FAIL_SUSPENDEDWOW_FAIL_FAIL_NOACCESSWOW_SUCCESS_SURVEYWOW_FAIL_PARENTCONTROLWOW_FAIL_LOCKED_ENFORCEDWOW_FAIL_TRIAL_ENDEDWOW_FAIL_USE_BATTLENETWOW_FAIL_ANTI_INDULGENCEWOW_FAIL_EXPIREDWOW_FAIL_NO_GAME_ACCOUNTWOW_FAIL_CHARGEBACKWOW_FAIL_INTERNET_GAME_ROOM_WITHOUT_BNETWOW_FAIL_GAME_ACCOUNT_LOCKEDWOW_FAIL_UNLOCKABLE_LOCK"
	_ErrorType_name_2 = "WOW_FAIL_CONVERSION_REQUIRED"
	_ErrorType_name_3 = "WOW_FAIL_DISCONNECTED"
)

var (
	_ErrorType_index_1 = [...]uint16{0, 15, 39, 66, 89, 105, 121, 145, 168, 191, 209, 231, 249, 271, 295, 315, 337, 361, 377, 401, 420, 460, 488, 512}
)

func (i ErrorType) String() string {
	switch {
	case i == 0:
		return _ErrorType_name_0
	case 3 <= i && i <= 25:
		i -= 3
		return _ErrorType_name_1[_ErrorType_index_1[i]:_ErrorType_index_1[i+1]]
	case i == 32:
		return _ErrorType_name_2
	case i == 255:
		return _ErrorType_name_3
	default:
		return "ErrorType(" + strconv.FormatInt(int64(i), 10) + ")"
	}
}
