diff options
author | jloup <jloup@jloup.work> | 2018-05-16 19:48:05 +0200 |
---|---|---|
committer | jloup <jloup@jloup.work> | 2018-05-16 19:48:05 +0200 |
commit | 4495b984d3e60874281f37cdb2dbe2cf1c3874ab (patch) | |
tree | eeb5e0b4950f340151fda79be0b2e3cac80c4035 /api/const_string.go | |
parent | 372ed7400f57355eb7dd98058b10ddeb1e1ff635 (diff) | |
download | Front-4495b984d3e60874281f37cdb2dbe2cf1c3874ab.tar.gz Front-4495b984d3e60874281f37cdb2dbe2cf1c3874ab.tar.zst Front-4495b984d3e60874281f37cdb2dbe2cf1c3874ab.zip |
Error flags.
Diffstat (limited to 'api/const_string.go')
-rw-r--r-- | api/const_string.go | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/api/const_string.go b/api/const_string.go index 5af7574..c22d1ae 100644 --- a/api/const_string.go +++ b/api/const_string.go | |||
@@ -1,4 +1,4 @@ | |||
1 | // Code generated by "stringer -type=Status,ErrorCode -output const_string.go"; DO NOT EDIT. | 1 | // Code generated by "stringer -type=Status -output const_string.go"; DO NOT EDIT. |
2 | 2 | ||
3 | package api | 3 | package api |
4 | 4 | ||
@@ -14,15 +14,3 @@ func (i Status) String() string { | |||
14 | } | 14 | } |
15 | return _Status_name[_Status_index[i]:_Status_index[i+1]] | 15 | return _Status_name[_Status_index[i]:_Status_index[i+1]] |
16 | } | 16 | } |
17 | |||
18 | const _ErrorCode_name = "BadRequestEmailExistsExternalServiceTimeoutInternalErrorInvalidCredentialsInvalidEmailInvalidMarketCredentialsMarketCredentialsNotConfiguredIPRestrictedApiKeyInvalidOtpInvalidPasswordNeedOtpValidationNotAuthorizedNotFoundOtpAlreadySetupOtpNotSetupUserNotConfirmed" | ||
19 | |||
20 | var _ErrorCode_index = [...]uint16{0, 10, 21, 43, 56, 74, 86, 110, 140, 158, 168, 183, 200, 213, 221, 236, 247, 263} | ||
21 | |||
22 | func (i ErrorCode) String() string { | ||
23 | i -= 3 | ||
24 | if i >= ErrorCode(len(_ErrorCode_index)-1) { | ||
25 | return "ErrorCode(" + strconv.FormatInt(int64(i+3), 10) + ")" | ||
26 | } | ||
27 | return _ErrorCode_name[_ErrorCode_index[i]:_ErrorCode_index[i+1]] | ||
28 | } | ||