-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample_errors.json
More file actions
166 lines (166 loc) · 4.68 KB
/
example_errors.json
File metadata and controls
166 lines (166 loc) · 4.68 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
[
{
"code": "InvalidType",
"message": "invalid type encountered",
"includeMap": false,
"metaData": [
{ "name": "typeEncountered", "dataType": "string"}
],
"tags": []
},
{
"code": "InvalidValue",
"message": "an invalid value was found",
"includeMap": false,
"metaData": [
{ "name": "value", "dataType": "interface{}"}
],
"tags": []
},
{
"code": "NilNotAllowed",
"message": "a nil value was encountered, but not allowed",
"includeMap": false,
"metaData": [],
"tags": []
},
{
"code": "NoContactFound",
"message": "no contact found for given query",
"includeMap": true,
"metaData": [],
"tags": [
"database"
]
},
{
"code": "NoUserFound",
"message": "no user found for given query",
"includeMap": true,
"metaData": [],
"tags": [
"database"
]
},
{
"code": "RepoQueryFailed",
"message": "repo query failed with error",
"includeMap": false,
"metaData": [
{ "name": "queryError", "dataType": "error"}
],
"tags": [
"database"
]
},
{
"code": "ContactNotConfirmed",
"message": "contact is not confirmed",
"includeMap": false,
"metaData": [
{ "name": "contactId", "dataType": "string"},
{ "name": "principal", "dataType": "string"},
{ "name": "principalType", "dataType": "string"}
],
"tags": []
},
{
"code": "LoginContactNotPrimary",
"message": "contact user for login is not a primary contact",
"includeMap": false,
"metaData": [
{ "name": "contactId", "dataType": "string"},
{ "name": "principal", "dataType": "string"},
{ "name": "principalType", "dataType": "string"}
],
"tags": []
},
{
"code": "UserLockedOut",
"message": "attempted login by locked out user",
"includeMap": false,
"metaData": [
{ "name": "userID", "dataType": "string"}
],
"tags": []
},
{
"code": "WrongType",
"message": "unexpected type encountered",
"includeMap": false,
"metaData": [
{ "name": "actual", "dataType": "string"},
{ "name": "expected", "dataType": "string"}
],
"tags": [
"misc"
]
},
{
"code": "LoginFailedWrongPassword",
"message": "login for user failed due to incorrect password",
"includeMap": false,
"metaData": [
{ "name": "userID", "dataType": "string"}
],
"tags": [
"auth",
"security",
"misc"
]
},
{
"code": "ComputeHashFailed",
"message": "a failure occurred while attempting to calculate a hash",
"includeMap": false,
"metaData": [
{ "name": "algorithm", "dataType": "string"},
{ "name": "error", "dataType": "error"}
],
"tags": []
},
{
"code": "FailedToParseObjectID",
"message": "failed to parse an object id string",
"includeMap": false,
"metaData": [
{ "name": "oid", "dataType": "string"},
{ "name": "error", "dataType": "error"}
],
"tags": [
"security"
]
},
{
"code": "ComponentNotImplemented",
"message": "component not implemented",
"includeMap": false,
"metaData": [
{ "name": "compoenentType", "dataType": "string"},
{ "name": "missingType", "dataType": "string"}
],
"tags": []
},
{
"code": "BcryptPasswordHashError",
"message": "an error occurred while processing bcrypt hash for password",
"includeMap": false,
"metaData": [
{ "name": "assetId", "dataType": "string"},
{ "name": "error", "dataType": "error"}
],
"tags": []
},
{
"code": "ImportPathTest",
"message": "An example of using multiple import paths for meta data",
"includeMap": false,
"metaData": [
{ "name": "id", "dataType": "string" },
{ "name": "tokenType", "dataType": "string" },
{ "name": "expiredAt", "dataType": "time.Time", "importPath": "time" },
{ "name": "otherTime", "dataType": "time.Time", "importPath": "time" },
{ "name": "otherFileInfo", "dataType": "os.FileInfo", "importPath": "os" }
]
}
]