summaryrefslogtreecommitdiffstats
path: root/internal/api/errorcode_string.go
blob: 2b4a294777169b4446374bd98f9240f41772dcfd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Code generated by "stringer -type=ErrorCode"; DO NOT EDIT.

package api

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[Ok-0]
	_ = x[Unauthenticated-1]
	_ = x[PermissionDenied-2]
	_ = x[BadRequest-3]
	_ = x[NotFound-4]
	_ = x[Internal-5]
}

const _ErrorCode_name = "OkUnauthenticatedPermissionDeniedBadRequestNotFoundInternal"

var _ErrorCode_index = [...]uint8{0, 2, 17, 33, 43, 51, 59}

func (i ErrorCode) String() string {
	if i < 0 || i >= ErrorCode(len(_ErrorCode_index)-1) {
		return "ErrorCode(" + strconv.FormatInt(int64(i), 10) + ")"
	}
	return _ErrorCode_name[_ErrorCode_index[i]:_ErrorCode_index[i+1]]
}