@snyk/error-catalog-nodejs-public 5.0.0 → 5.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/catalogs/Fix-error-catalog.d.ts +10 -0
- package/src/catalogs/Fix-error-catalog.js +20 -0
- package/src/catalogs/Fix-error-catalog.js.map +1 -1
- package/src/catalogs/IsolatedBuilds-error-catalog.d.ts +3 -0
- package/src/catalogs/IsolatedBuilds-error-catalog.js +6 -0
- package/src/catalogs/IsolatedBuilds-error-catalog.js.map +1 -1
- package/src/catalogs/OpenAPI-error-catalog.d.ts +8 -0
- package/src/catalogs/OpenAPI-error-catalog.js +16 -0
- package/src/catalogs/OpenAPI-error-catalog.js.map +1 -1
- package/src/catalogs/OpenSourceEcosystems-error-catalog.d.ts +52 -0
- package/src/catalogs/OpenSourceEcosystems-error-catalog.js +104 -0
- package/src/catalogs/OpenSourceEcosystems-error-catalog.js.map +1 -1
- package/src/catalogs/OpenSourceProjectIssues-error-catalog.d.ts +5 -0
- package/src/catalogs/OpenSourceProjectIssues-error-catalog.js +10 -0
- package/src/catalogs/OpenSourceProjectIssues-error-catalog.js.map +1 -1
- package/src/catalogs/OpenSourceProjectSnapshots-error-catalog.d.ts +5 -0
- package/src/catalogs/OpenSourceProjectSnapshots-error-catalog.js +10 -0
- package/src/catalogs/OpenSourceProjectSnapshots-error-catalog.js.map +1 -1
- package/src/catalogs/OpenSourceUnmanaged-error-catalog.d.ts +2 -0
- package/src/catalogs/OpenSourceUnmanaged-error-catalog.js +4 -0
- package/src/catalogs/OpenSourceUnmanaged-error-catalog.js.map +1 -1
- package/src/catalogs/PurlVulnerabilityFetching-error-catalog.d.ts +20 -0
- package/src/catalogs/PurlVulnerabilityFetching-error-catalog.js +40 -0
- package/src/catalogs/PurlVulnerabilityFetching-error-catalog.js.map +1 -1
- package/src/catalogs/SbomExport-error-catalog.d.ts +9 -0
- package/src/catalogs/SbomExport-error-catalog.js +18 -0
- package/src/catalogs/SbomExport-error-catalog.js.map +1 -1
- package/src/catalogs/Snyk-error-catalog.d.ts +6 -0
- package/src/catalogs/Snyk-error-catalog.js +12 -0
- package/src/catalogs/Snyk-error-catalog.js.map +1 -1
- package/src/problem-error.js +1 -1
- package/src/problem-error.js.map +1 -1
- package/src/types.d.ts +3 -1
- package/src/types.js.map +1 -1
|
@@ -25,6 +25,7 @@ const problem_error_1 = require("../problem-error");
|
|
|
25
25
|
* @summary Unable to parse manifest file
|
|
26
26
|
* @category OpenSourceEcosystems
|
|
27
27
|
* @param {string} details the specific details that causes this error
|
|
28
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
28
29
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
29
30
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
30
31
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -37,6 +38,7 @@ class UnparseableManifestError extends problem_error_1.ProblemError {
|
|
|
37
38
|
status: 400,
|
|
38
39
|
errorCode: 'SNYK-OS-0001',
|
|
39
40
|
level: 'error',
|
|
41
|
+
classification: 'ACTIONABLE',
|
|
40
42
|
instance,
|
|
41
43
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
42
44
|
this.name = this.constructor.name;
|
|
@@ -50,6 +52,7 @@ exports.UnparseableManifestError = UnparseableManifestError;
|
|
|
50
52
|
* @summary Unable to parse lock file
|
|
51
53
|
* @category OpenSourceEcosystems
|
|
52
54
|
* @param {string} details the specific details that causes this error
|
|
55
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
53
56
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
54
57
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
55
58
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -62,6 +65,7 @@ class UnparseableLockFileError extends problem_error_1.ProblemError {
|
|
|
62
65
|
status: 400,
|
|
63
66
|
errorCode: 'SNYK-OS-0002',
|
|
64
67
|
level: 'error',
|
|
68
|
+
classification: 'ACTIONABLE',
|
|
65
69
|
instance,
|
|
66
70
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
67
71
|
this.name = this.constructor.name;
|
|
@@ -78,6 +82,7 @@ exports.UnparseableLockFileError = UnparseableLockFileError;
|
|
|
78
82
|
* @summary Unknown dependency version
|
|
79
83
|
* @category OpenSourceEcosystems
|
|
80
84
|
* @param {string} details the specific details that causes this error
|
|
85
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
81
86
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
82
87
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
83
88
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -90,6 +95,7 @@ class UnknownDependencyVersionError extends problem_error_1.ProblemError {
|
|
|
90
95
|
status: 404,
|
|
91
96
|
errorCode: 'SNYK-OS-0003',
|
|
92
97
|
level: 'warn',
|
|
98
|
+
classification: 'ACTIONABLE',
|
|
93
99
|
instance,
|
|
94
100
|
}, details, Object.assign({ links: [
|
|
95
101
|
'https://support.snyk.io/hc/en-us/articles/360001373178-Could-not-determine-version-for-dependencies',
|
|
@@ -105,6 +111,7 @@ exports.UnknownDependencyVersionError = UnknownDependencyVersionError;
|
|
|
105
111
|
* @summary Missing required request header
|
|
106
112
|
* @category OpenSourceEcosystems
|
|
107
113
|
* @param {string} details the specific details that causes this error
|
|
114
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
108
115
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
109
116
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
110
117
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -117,6 +124,7 @@ class MissingHeaderError extends problem_error_1.ProblemError {
|
|
|
117
124
|
status: 422,
|
|
118
125
|
errorCode: 'SNYK-OS-0004',
|
|
119
126
|
level: 'error',
|
|
127
|
+
classification: 'ACTIONABLE',
|
|
120
128
|
instance,
|
|
121
129
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
122
130
|
this.name = this.constructor.name;
|
|
@@ -130,6 +138,7 @@ exports.MissingHeaderError = MissingHeaderError;
|
|
|
130
138
|
* @summary Payload missing required elements
|
|
131
139
|
* @category OpenSourceEcosystems
|
|
132
140
|
* @param {string} details the specific details that causes this error
|
|
141
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
133
142
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
134
143
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
135
144
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -142,6 +151,7 @@ class MissingPayloadError extends problem_error_1.ProblemError {
|
|
|
142
151
|
status: 422,
|
|
143
152
|
errorCode: 'SNYK-OS-0005',
|
|
144
153
|
level: 'error',
|
|
154
|
+
classification: 'ACTIONABLE',
|
|
145
155
|
instance,
|
|
146
156
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
147
157
|
this.name = this.constructor.name;
|
|
@@ -155,6 +165,7 @@ exports.MissingPayloadError = MissingPayloadError;
|
|
|
155
165
|
* @summary Files cannot be processed
|
|
156
166
|
* @category OpenSourceEcosystems
|
|
157
167
|
* @param {string} details the specific details that causes this error
|
|
168
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
158
169
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
159
170
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
160
171
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -167,6 +178,7 @@ class UnprocessableFileError extends problem_error_1.ProblemError {
|
|
|
167
178
|
status: 422,
|
|
168
179
|
errorCode: 'SNYK-OS-0006',
|
|
169
180
|
level: 'error',
|
|
181
|
+
classification: 'ACTIONABLE',
|
|
170
182
|
instance,
|
|
171
183
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
172
184
|
this.name = this.constructor.name;
|
|
@@ -180,6 +192,7 @@ exports.UnprocessableFileError = UnprocessableFileError;
|
|
|
180
192
|
* @summary Cannot get file from source
|
|
181
193
|
* @category OpenSourceEcosystems
|
|
182
194
|
* @param {string} details the specific details that causes this error
|
|
195
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
183
196
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
184
197
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
185
198
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -192,6 +205,7 @@ class CannotGetFileFromSourceError extends problem_error_1.ProblemError {
|
|
|
192
205
|
status: 500,
|
|
193
206
|
errorCode: 'SNYK-OS-0007',
|
|
194
207
|
level: 'error',
|
|
208
|
+
classification: 'UNEXPECTED',
|
|
195
209
|
instance,
|
|
196
210
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
197
211
|
this.name = this.constructor.name;
|
|
@@ -205,6 +219,7 @@ exports.CannotGetFileFromSourceError = CannotGetFileFromSourceError;
|
|
|
205
219
|
* @summary Missing environment variable
|
|
206
220
|
* @category OpenSourceEcosystems
|
|
207
221
|
* @param {string} details the specific details that causes this error
|
|
222
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
208
223
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
209
224
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
210
225
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -217,6 +232,7 @@ class MissingEnvironmentVariableError extends problem_error_1.ProblemError {
|
|
|
217
232
|
status: 500,
|
|
218
233
|
errorCode: 'SNYK-OS-0008',
|
|
219
234
|
level: 'error',
|
|
235
|
+
classification: 'UNEXPECTED',
|
|
220
236
|
instance,
|
|
221
237
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
222
238
|
this.name = this.constructor.name;
|
|
@@ -233,6 +249,7 @@ exports.MissingEnvironmentVariableError = MissingEnvironmentVariableError;
|
|
|
233
249
|
* @summary Unsupported manifest file type for remediation
|
|
234
250
|
* @category OpenSourceEcosystems
|
|
235
251
|
* @param {string} details the specific details that causes this error
|
|
252
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
236
253
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
237
254
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
238
255
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -245,6 +262,7 @@ class UnsupportedManifestFileError extends problem_error_1.ProblemError {
|
|
|
245
262
|
status: 400,
|
|
246
263
|
errorCode: 'SNYK-OS-DOTNET-0001',
|
|
247
264
|
level: 'error',
|
|
265
|
+
classification: 'UNSUPPORTED',
|
|
248
266
|
instance,
|
|
249
267
|
}, details, Object.assign({ links: [
|
|
250
268
|
'https://docs.snyk.io/scan-applications/supported-languages-and-frameworks/.net',
|
|
@@ -260,6 +278,7 @@ exports.UnsupportedManifestFileError = UnsupportedManifestFileError;
|
|
|
260
278
|
* @summary Target framework not supported
|
|
261
279
|
* @category OpenSourceEcosystems
|
|
262
280
|
* @param {string} details the specific details that causes this error
|
|
281
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
263
282
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
264
283
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
265
284
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -272,6 +291,7 @@ class UnsupportedTargetFrameworkError extends problem_error_1.ProblemError {
|
|
|
272
291
|
status: 422,
|
|
273
292
|
errorCode: 'SNYK-OS-DOTNET-0002',
|
|
274
293
|
level: 'error',
|
|
294
|
+
classification: 'UNSUPPORTED',
|
|
275
295
|
instance,
|
|
276
296
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
277
297
|
this.name = this.constructor.name;
|
|
@@ -303,6 +323,7 @@ exports.UnsupportedTargetFrameworkError = UnsupportedTargetFrameworkError;
|
|
|
303
323
|
* @summary Your C# code is missing a static Main function
|
|
304
324
|
* @category OpenSourceEcosystems
|
|
305
325
|
* @param {string} details the specific details that causes this error
|
|
326
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
306
327
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
307
328
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
308
329
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -315,6 +336,7 @@ class MissingStaticMainFunctionError extends problem_error_1.ProblemError {
|
|
|
315
336
|
status: 422,
|
|
316
337
|
errorCode: 'SNYK-OS-DOTNET-0003',
|
|
317
338
|
level: 'error',
|
|
339
|
+
classification: 'ACTIONABLE',
|
|
318
340
|
instance,
|
|
319
341
|
}, details, Object.assign({ links: [
|
|
320
342
|
'https://learn.microsoft.com/en-us/dotnet/csharp/misc/cs5001',
|
|
@@ -343,6 +365,7 @@ exports.MissingStaticMainFunctionError = MissingStaticMainFunctionError;
|
|
|
343
365
|
* @summary The dotnet CLI is unable to generate a self-contained binary
|
|
344
366
|
* @category OpenSourceEcosystems
|
|
345
367
|
* @param {string} details the specific details that causes this error
|
|
368
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
346
369
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
347
370
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
348
371
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -355,6 +378,7 @@ class PublishFailedError extends problem_error_1.ProblemError {
|
|
|
355
378
|
status: 422,
|
|
356
379
|
errorCode: 'SNYK-OS-DOTNET-0004',
|
|
357
380
|
level: 'error',
|
|
381
|
+
classification: 'ACTIONABLE',
|
|
358
382
|
instance,
|
|
359
383
|
}, details, Object.assign({ links: [
|
|
360
384
|
'https://learn.microsoft.com/en-us/dotnet/core/tools/sdk-errors/',
|
|
@@ -375,6 +399,7 @@ exports.PublishFailedError = PublishFailedError;
|
|
|
375
399
|
* @summary Failed to access private module
|
|
376
400
|
* @category OpenSourceEcosystems
|
|
377
401
|
* @param {string} details the specific details that causes this error
|
|
402
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
378
403
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
379
404
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
380
405
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -387,6 +412,7 @@ class PrivateModuleError extends problem_error_1.ProblemError {
|
|
|
387
412
|
status: 400,
|
|
388
413
|
errorCode: 'SNYK-OS-GO-0001',
|
|
389
414
|
level: 'error',
|
|
415
|
+
classification: 'ACTIONABLE',
|
|
390
416
|
instance,
|
|
391
417
|
}, details, Object.assign({ links: [
|
|
392
418
|
'https://docs.snyk.io/scan-applications/supported-languages-and-frameworks/go',
|
|
@@ -405,6 +431,7 @@ exports.PrivateModuleError = PrivateModuleError;
|
|
|
405
431
|
* @summary Go mod file not found
|
|
406
432
|
* @category OpenSourceEcosystems
|
|
407
433
|
* @param {string} details the specific details that causes this error
|
|
434
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
408
435
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
409
436
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
410
437
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -417,6 +444,7 @@ class GoModFileMissingError extends problem_error_1.ProblemError {
|
|
|
417
444
|
status: 400,
|
|
418
445
|
errorCode: 'SNYK-OS-GO-0002',
|
|
419
446
|
level: 'error',
|
|
447
|
+
classification: 'ACTIONABLE',
|
|
420
448
|
instance,
|
|
421
449
|
}, details, Object.assign({ links: [
|
|
422
450
|
'https://docs.snyk.io/scan-applications/supported-languages-and-frameworks/go',
|
|
@@ -440,6 +468,7 @@ exports.GoModFileMissingError = GoModFileMissingError;
|
|
|
440
468
|
* @summary OAuth re-authorization required
|
|
441
469
|
* @category OpenSourceEcosystems
|
|
442
470
|
* @param {string} details the specific details that causes this error
|
|
471
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
443
472
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
444
473
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
445
474
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -452,6 +481,7 @@ class SsoReAuthRequiredError extends problem_error_1.ProblemError {
|
|
|
452
481
|
status: 422,
|
|
453
482
|
errorCode: 'SNYK-OS-GO-0003',
|
|
454
483
|
level: 'error',
|
|
484
|
+
classification: 'ACTIONABLE',
|
|
455
485
|
instance,
|
|
456
486
|
}, details, Object.assign({ links: [
|
|
457
487
|
'https://docs.github.com/en/enterprise-cloud@latest/authentication/authenticating-with-saml-single-sign-on/about-authentication-with-saml-single-sign-on#about-oauth-apps-github-apps-and-saml-sso',
|
|
@@ -478,6 +508,7 @@ exports.SsoReAuthRequiredError = SsoReAuthRequiredError;
|
|
|
478
508
|
* @summary Your project repository is missing required files
|
|
479
509
|
* @category OpenSourceEcosystems
|
|
480
510
|
* @param {string} details the specific details that causes this error
|
|
511
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
481
512
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
482
513
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
483
514
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -490,6 +521,7 @@ class IncompleteProjectError extends problem_error_1.ProblemError {
|
|
|
490
521
|
status: 422,
|
|
491
522
|
errorCode: 'SNYK-OS-GO-0004',
|
|
492
523
|
level: 'error',
|
|
524
|
+
classification: 'ACTIONABLE',
|
|
493
525
|
instance,
|
|
494
526
|
}, details, Object.assign({ links: [
|
|
495
527
|
'https://docs.snyk.io/snyk-cli',
|
|
@@ -520,6 +552,7 @@ exports.IncompleteProjectError = IncompleteProjectError;
|
|
|
520
552
|
* @summary Your project repository has inconsistent vendoring information
|
|
521
553
|
* @category OpenSourceEcosystems
|
|
522
554
|
* @param {string} details the specific details that causes this error
|
|
555
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
523
556
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
524
557
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
525
558
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -532,6 +565,7 @@ class InconsistentVendoringError extends problem_error_1.ProblemError {
|
|
|
532
565
|
status: 422,
|
|
533
566
|
errorCode: 'SNYK-OS-GO-0005',
|
|
534
567
|
level: 'error',
|
|
568
|
+
classification: 'ACTIONABLE',
|
|
535
569
|
instance,
|
|
536
570
|
}, details, Object.assign({ links: [
|
|
537
571
|
'https://go.dev/ref/mod#go-mod-vendor',
|
|
@@ -549,6 +583,7 @@ exports.InconsistentVendoringError = InconsistentVendoringError;
|
|
|
549
583
|
* @summary Unsupported external file generation
|
|
550
584
|
* @category OpenSourceEcosystems
|
|
551
585
|
* @param {string} details the specific details that causes this error
|
|
586
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
552
587
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
553
588
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
554
589
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -561,6 +596,7 @@ class UnsupportedExternalFileGenerationSCMError extends problem_error_1.ProblemE
|
|
|
561
596
|
status: 422,
|
|
562
597
|
errorCode: 'SNYK-OS-GO-0006',
|
|
563
598
|
level: 'error',
|
|
599
|
+
classification: 'UNSUPPORTED',
|
|
564
600
|
instance,
|
|
565
601
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
566
602
|
this.name = this.constructor.name;
|
|
@@ -574,6 +610,7 @@ exports.UnsupportedExternalFileGenerationSCMError = UnsupportedExternalFileGener
|
|
|
574
610
|
* @summary Missing property
|
|
575
611
|
* @category OpenSourceEcosystems
|
|
576
612
|
* @param {string} details the specific details that causes this error
|
|
613
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
577
614
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
578
615
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
579
616
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -586,6 +623,7 @@ class MissingRequirementFromPomError extends problem_error_1.ProblemError {
|
|
|
586
623
|
status: 422,
|
|
587
624
|
errorCode: 'SNYK-OS-MAVEN-0001',
|
|
588
625
|
level: 'error',
|
|
626
|
+
classification: 'ACTIONABLE',
|
|
589
627
|
instance,
|
|
590
628
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
591
629
|
this.name = this.constructor.name;
|
|
@@ -599,6 +637,7 @@ exports.MissingRequirementFromPomError = MissingRequirementFromPomError;
|
|
|
599
637
|
* @summary Unable to resolve value for property
|
|
600
638
|
* @category OpenSourceEcosystems
|
|
601
639
|
* @param {string} details the specific details that causes this error
|
|
640
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
602
641
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
603
642
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
604
643
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -611,6 +650,7 @@ class UnableToResolveValueForPropertyError extends problem_error_1.ProblemError
|
|
|
611
650
|
status: 422,
|
|
612
651
|
errorCode: 'SNYK-OS-MAVEN-0002',
|
|
613
652
|
level: 'error',
|
|
653
|
+
classification: 'ACTIONABLE',
|
|
614
654
|
instance,
|
|
615
655
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
616
656
|
this.name = this.constructor.name;
|
|
@@ -624,6 +664,7 @@ exports.UnableToResolveValueForPropertyError = UnableToResolveValueForPropertyEr
|
|
|
624
664
|
* @summary Unable to resolve version for property
|
|
625
665
|
* @category OpenSourceEcosystems
|
|
626
666
|
* @param {string} details the specific details that causes this error
|
|
667
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
627
668
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
628
669
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
629
670
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -636,6 +677,7 @@ class UnableToResolveVersionForPropertyError extends problem_error_1.ProblemErro
|
|
|
636
677
|
status: 500,
|
|
637
678
|
errorCode: 'SNYK-OS-MAVEN-0003',
|
|
638
679
|
level: 'error',
|
|
680
|
+
classification: 'UNEXPECTED',
|
|
639
681
|
instance,
|
|
640
682
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
641
683
|
this.name = this.constructor.name;
|
|
@@ -649,6 +691,7 @@ exports.UnableToResolveVersionForPropertyError = UnableToResolveVersionForProper
|
|
|
649
691
|
* @summary Cyclic property detected in POM file
|
|
650
692
|
* @category OpenSourceEcosystems
|
|
651
693
|
* @param {string} details the specific details that causes this error
|
|
694
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
652
695
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
653
696
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
654
697
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -661,6 +704,7 @@ class CyclicPropertyDetectedInPomFileError extends problem_error_1.ProblemError
|
|
|
661
704
|
status: 422,
|
|
662
705
|
errorCode: 'SNYK-OS-MAVEN-0004',
|
|
663
706
|
level: 'error',
|
|
707
|
+
classification: 'ACTIONABLE',
|
|
664
708
|
instance,
|
|
665
709
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
666
710
|
this.name = this.constructor.name;
|
|
@@ -674,6 +718,7 @@ exports.CyclicPropertyDetectedInPomFileError = CyclicPropertyDetectedInPomFileEr
|
|
|
674
718
|
* @summary Error parsing the XML file
|
|
675
719
|
* @category OpenSourceEcosystems
|
|
676
720
|
* @param {string} details the specific details that causes this error
|
|
721
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
677
722
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
678
723
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
679
724
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -686,6 +731,7 @@ class UnableToParseXMLError extends problem_error_1.ProblemError {
|
|
|
686
731
|
status: 422,
|
|
687
732
|
errorCode: 'SNYK-OS-MAVEN-0005',
|
|
688
733
|
level: 'error',
|
|
734
|
+
classification: 'ACTIONABLE',
|
|
689
735
|
instance,
|
|
690
736
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
691
737
|
this.name = this.constructor.name;
|
|
@@ -699,6 +745,7 @@ exports.UnableToParseXMLError = UnableToParseXMLError;
|
|
|
699
745
|
* @summary Invalid coordinates provided
|
|
700
746
|
* @category OpenSourceEcosystems
|
|
701
747
|
* @param {string} details the specific details that causes this error
|
|
748
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
702
749
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
703
750
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
704
751
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -711,6 +758,7 @@ class InvalidCoordinatesError extends problem_error_1.ProblemError {
|
|
|
711
758
|
status: 422,
|
|
712
759
|
errorCode: 'SNYK-OS-MAVEN-0006',
|
|
713
760
|
level: 'error',
|
|
761
|
+
classification: 'ACTIONABLE',
|
|
714
762
|
instance,
|
|
715
763
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
716
764
|
this.name = this.constructor.name;
|
|
@@ -724,6 +772,7 @@ exports.InvalidCoordinatesError = InvalidCoordinatesError;
|
|
|
724
772
|
* @summary Skipping group
|
|
725
773
|
* @category OpenSourceEcosystems
|
|
726
774
|
* @param {string} details the specific details that causes this error
|
|
775
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
727
776
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
728
777
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
729
778
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -736,6 +785,7 @@ class SkippedGroupError extends problem_error_1.ProblemError {
|
|
|
736
785
|
status: 422,
|
|
737
786
|
errorCode: 'SNYK-OS-MAVEN-0007',
|
|
738
787
|
level: 'error',
|
|
788
|
+
classification: 'ACTIONABLE',
|
|
739
789
|
instance,
|
|
740
790
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
741
791
|
this.name = this.constructor.name;
|
|
@@ -749,6 +799,7 @@ exports.SkippedGroupError = SkippedGroupError;
|
|
|
749
799
|
* @summary Pom file not found
|
|
750
800
|
* @category OpenSourceEcosystems
|
|
751
801
|
* @param {string} details the specific details that causes this error
|
|
802
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
752
803
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
753
804
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
754
805
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -761,6 +812,7 @@ class PomFileNotFoundError extends problem_error_1.ProblemError {
|
|
|
761
812
|
status: 422,
|
|
762
813
|
errorCode: 'SNYK-OS-MAVEN-0008',
|
|
763
814
|
level: 'error',
|
|
815
|
+
classification: 'ACTIONABLE',
|
|
764
816
|
instance,
|
|
765
817
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
766
818
|
this.name = this.constructor.name;
|
|
@@ -774,6 +826,7 @@ exports.PomFileNotFoundError = PomFileNotFoundError;
|
|
|
774
826
|
* @summary Missing project from POM
|
|
775
827
|
* @category OpenSourceEcosystems
|
|
776
828
|
* @param {string} details the specific details that causes this error
|
|
829
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
777
830
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
778
831
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
779
832
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -786,6 +839,7 @@ class MissingProjectFromPomError extends problem_error_1.ProblemError {
|
|
|
786
839
|
status: 422,
|
|
787
840
|
errorCode: 'SNYK-OS-MAVEN-0009',
|
|
788
841
|
level: 'error',
|
|
842
|
+
classification: 'ACTIONABLE',
|
|
789
843
|
instance,
|
|
790
844
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
791
845
|
this.name = this.constructor.name;
|
|
@@ -799,6 +853,7 @@ exports.MissingProjectFromPomError = MissingProjectFromPomError;
|
|
|
799
853
|
* @summary Cannot resolve the target POM from the input XML
|
|
800
854
|
* @category OpenSourceEcosystems
|
|
801
855
|
* @param {string} details the specific details that causes this error
|
|
856
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
802
857
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
803
858
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
804
859
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -811,6 +866,7 @@ class CannotResolveTargetPomFromXmlError extends problem_error_1.ProblemError {
|
|
|
811
866
|
status: 422,
|
|
812
867
|
errorCode: 'SNYK-OS-MAVEN-0010',
|
|
813
868
|
level: 'error',
|
|
869
|
+
classification: 'ACTIONABLE',
|
|
814
870
|
instance,
|
|
815
871
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
816
872
|
this.name = this.constructor.name;
|
|
@@ -824,6 +880,7 @@ exports.CannotResolveTargetPomFromXmlError = CannotResolveTargetPomFromXmlError;
|
|
|
824
880
|
* @summary Cannot resolve the target POM from the repository
|
|
825
881
|
* @category OpenSourceEcosystems
|
|
826
882
|
* @param {string} details the specific details that causes this error
|
|
883
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
827
884
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
828
885
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
829
886
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -836,6 +893,7 @@ class CannotResolveTargetPomFromRepoError extends problem_error_1.ProblemError {
|
|
|
836
893
|
status: 404,
|
|
837
894
|
errorCode: 'SNYK-OS-MAVEN-0011',
|
|
838
895
|
level: 'error',
|
|
896
|
+
classification: 'ACTIONABLE',
|
|
839
897
|
instance,
|
|
840
898
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
841
899
|
this.name = this.constructor.name;
|
|
@@ -849,6 +907,7 @@ exports.CannotResolveTargetPomFromRepoError = CannotResolveTargetPomFromRepoErro
|
|
|
849
907
|
* @summary Cannot get the build file repository
|
|
850
908
|
* @category OpenSourceEcosystems
|
|
851
909
|
* @param {string} details the specific details that causes this error
|
|
910
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
852
911
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
853
912
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
854
913
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -861,6 +920,7 @@ class CannotGetBuildFileFromRepoError extends problem_error_1.ProblemError {
|
|
|
861
920
|
status: 404,
|
|
862
921
|
errorCode: 'SNYK-OS-MAVEN-0012',
|
|
863
922
|
level: 'error',
|
|
923
|
+
classification: 'ACTIONABLE',
|
|
864
924
|
instance,
|
|
865
925
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
866
926
|
this.name = this.constructor.name;
|
|
@@ -874,6 +934,7 @@ exports.CannotGetBuildFileFromRepoError = CannotGetBuildFileFromRepoError;
|
|
|
874
934
|
* @summary Unable to create hosted git info
|
|
875
935
|
* @category OpenSourceEcosystems
|
|
876
936
|
* @param {string} details the specific details that causes this error
|
|
937
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
877
938
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
878
939
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
879
940
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -886,6 +947,7 @@ class CannotCreateGitHostError extends problem_error_1.ProblemError {
|
|
|
886
947
|
status: 500,
|
|
887
948
|
errorCode: 'SNYK-OS-MAVEN-0013',
|
|
888
949
|
level: 'error',
|
|
950
|
+
classification: 'UNEXPECTED',
|
|
889
951
|
instance,
|
|
890
952
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
891
953
|
this.name = this.constructor.name;
|
|
@@ -899,6 +961,7 @@ exports.CannotCreateGitHostError = CannotCreateGitHostError;
|
|
|
899
961
|
* @summary No released version for versions range
|
|
900
962
|
* @category OpenSourceEcosystems
|
|
901
963
|
* @param {string} details the specific details that causes this error
|
|
964
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
902
965
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
903
966
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
904
967
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -911,6 +974,7 @@ class NoReleasedVersionForVersionsRangeError extends problem_error_1.ProblemErro
|
|
|
911
974
|
status: 422,
|
|
912
975
|
errorCode: 'SNYK-OS-MAVEN-0014',
|
|
913
976
|
level: 'error',
|
|
977
|
+
classification: 'ACTIONABLE',
|
|
914
978
|
instance,
|
|
915
979
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
916
980
|
this.name = this.constructor.name;
|
|
@@ -924,6 +988,7 @@ exports.NoReleasedVersionForVersionsRangeError = NoReleasedVersionForVersionsRan
|
|
|
924
988
|
* @summary Source is not supported
|
|
925
989
|
* @category OpenSourceEcosystems
|
|
926
990
|
* @param {string} details the specific details that causes this error
|
|
991
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
927
992
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
928
993
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
929
994
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -936,6 +1001,7 @@ class SourceNotSupportedError extends problem_error_1.ProblemError {
|
|
|
936
1001
|
status: 422,
|
|
937
1002
|
errorCode: 'SNYK-OS-MAVEN-0015',
|
|
938
1003
|
level: 'error',
|
|
1004
|
+
classification: 'UNSUPPORTED',
|
|
939
1005
|
instance,
|
|
940
1006
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
941
1007
|
this.name = this.constructor.name;
|
|
@@ -949,6 +1015,7 @@ exports.SourceNotSupportedError = SourceNotSupportedError;
|
|
|
949
1015
|
* @summary Timeout when processing the dependency tree
|
|
950
1016
|
* @category OpenSourceEcosystems
|
|
951
1017
|
* @param {string} details the specific details that causes this error
|
|
1018
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
952
1019
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
953
1020
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
954
1021
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -961,6 +1028,7 @@ class TimeoutWhenProcessingTheDepTreeError extends problem_error_1.ProblemError
|
|
|
961
1028
|
status: 422,
|
|
962
1029
|
errorCode: 'SNYK-OS-MAVEN-0016',
|
|
963
1030
|
level: 'error',
|
|
1031
|
+
classification: 'UNEXPECTED',
|
|
964
1032
|
instance,
|
|
965
1033
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
966
1034
|
this.name = this.constructor.name;
|
|
@@ -974,6 +1042,7 @@ exports.TimeoutWhenProcessingTheDepTreeError = TimeoutWhenProcessingTheDepTreeEr
|
|
|
974
1042
|
* @summary No repository found for A NPM package
|
|
975
1043
|
* @category OpenSourceEcosystems
|
|
976
1044
|
* @param {string} details the specific details that causes this error
|
|
1045
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
977
1046
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
978
1047
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
979
1048
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -986,6 +1055,7 @@ class NoRepoFoundForTheNPMPackageError extends problem_error_1.ProblemError {
|
|
|
986
1055
|
status: 422,
|
|
987
1056
|
errorCode: 'SNYK-OS-NODEJS-0001',
|
|
988
1057
|
level: 'error',
|
|
1058
|
+
classification: 'ACTIONABLE',
|
|
989
1059
|
instance,
|
|
990
1060
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
991
1061
|
this.name = this.constructor.name;
|
|
@@ -999,6 +1069,7 @@ exports.NoRepoFoundForTheNPMPackageError = NoRepoFoundForTheNPMPackageError;
|
|
|
999
1069
|
* @summary Could not parse NPM registry URL
|
|
1000
1070
|
* @category OpenSourceEcosystems
|
|
1001
1071
|
* @param {string} details the specific details that causes this error
|
|
1072
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
1002
1073
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
1003
1074
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
1004
1075
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -1011,6 +1082,7 @@ class CouldNotParseNPMRegistryURLError extends problem_error_1.ProblemError {
|
|
|
1011
1082
|
status: 422,
|
|
1012
1083
|
errorCode: 'SNYK-OS-NODEJS-0002',
|
|
1013
1084
|
level: 'error',
|
|
1085
|
+
classification: 'ACTIONABLE',
|
|
1014
1086
|
instance,
|
|
1015
1087
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
1016
1088
|
this.name = this.constructor.name;
|
|
@@ -1024,6 +1096,7 @@ exports.CouldNotParseNPMRegistryURLError = CouldNotParseNPMRegistryURLError;
|
|
|
1024
1096
|
* @summary Could not find a broker resolved URL
|
|
1025
1097
|
* @category OpenSourceEcosystems
|
|
1026
1098
|
* @param {string} details the specific details that causes this error
|
|
1099
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
1027
1100
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
1028
1101
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
1029
1102
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -1036,6 +1109,7 @@ class CouldNotFindBrokerURLError extends problem_error_1.ProblemError {
|
|
|
1036
1109
|
status: 422,
|
|
1037
1110
|
errorCode: 'SNYK-OS-NODEJS-0003',
|
|
1038
1111
|
level: 'error',
|
|
1112
|
+
classification: 'ACTIONABLE',
|
|
1039
1113
|
instance,
|
|
1040
1114
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
1041
1115
|
this.name = this.constructor.name;
|
|
@@ -1049,6 +1123,7 @@ exports.CouldNotFindBrokerURLError = CouldNotFindBrokerURLError;
|
|
|
1049
1123
|
* @summary Unable to replace broker URL
|
|
1050
1124
|
* @category OpenSourceEcosystems
|
|
1051
1125
|
* @param {string} details the specific details that causes this error
|
|
1126
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
1052
1127
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
1053
1128
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
1054
1129
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -1061,6 +1136,7 @@ class UnableToReplaceBrokerURLError extends problem_error_1.ProblemError {
|
|
|
1061
1136
|
status: 422,
|
|
1062
1137
|
errorCode: 'SNYK-OS-NODEJS-0004',
|
|
1063
1138
|
level: 'error',
|
|
1139
|
+
classification: 'UNEXPECTED',
|
|
1064
1140
|
instance,
|
|
1065
1141
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
1066
1142
|
this.name = this.constructor.name;
|
|
@@ -1074,6 +1150,7 @@ exports.UnableToReplaceBrokerURLError = UnableToReplaceBrokerURLError;
|
|
|
1074
1150
|
* @summary Bad NPM version
|
|
1075
1151
|
* @category OpenSourceEcosystems
|
|
1076
1152
|
* @param {string} details the specific details that causes this error
|
|
1153
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
1077
1154
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
1078
1155
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
1079
1156
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -1086,6 +1163,7 @@ class BadNPMVersionError extends problem_error_1.ProblemError {
|
|
|
1086
1163
|
status: 422,
|
|
1087
1164
|
errorCode: 'SNYK-OS-NODEJS-0005',
|
|
1088
1165
|
level: 'error',
|
|
1166
|
+
classification: 'UNSUPPORTED',
|
|
1089
1167
|
instance,
|
|
1090
1168
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
1091
1169
|
this.name = this.constructor.name;
|
|
@@ -1099,6 +1177,7 @@ exports.BadNPMVersionError = BadNPMVersionError;
|
|
|
1099
1177
|
* @summary Unknown blob encoding on Github
|
|
1100
1178
|
* @category OpenSourceEcosystems
|
|
1101
1179
|
* @param {string} details the specific details that causes this error
|
|
1180
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
1102
1181
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
1103
1182
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
1104
1183
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -1111,6 +1190,7 @@ class UnknownBlobEncodingOnGithubError extends problem_error_1.ProblemError {
|
|
|
1111
1190
|
status: 422,
|
|
1112
1191
|
errorCode: 'SNYK-OS-NODEJS-0006',
|
|
1113
1192
|
level: 'error',
|
|
1193
|
+
classification: 'UNEXPECTED',
|
|
1114
1194
|
instance,
|
|
1115
1195
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
1116
1196
|
this.name = this.constructor.name;
|
|
@@ -1124,6 +1204,7 @@ exports.UnknownBlobEncodingOnGithubError = UnknownBlobEncodingOnGithubError;
|
|
|
1124
1204
|
* @summary No result from forked process
|
|
1125
1205
|
* @category OpenSourceEcosystems
|
|
1126
1206
|
* @param {string} details the specific details that causes this error
|
|
1207
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
1127
1208
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
1128
1209
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
1129
1210
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -1136,6 +1217,7 @@ class NoResultsFromForkerProcessesError extends problem_error_1.ProblemError {
|
|
|
1136
1217
|
status: 500,
|
|
1137
1218
|
errorCode: 'SNYK-OS-NODEJS-0007',
|
|
1138
1219
|
level: 'error',
|
|
1220
|
+
classification: 'UNEXPECTED',
|
|
1139
1221
|
instance,
|
|
1140
1222
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
1141
1223
|
this.name = this.constructor.name;
|
|
@@ -1149,6 +1231,7 @@ exports.NoResultsFromForkerProcessesError = NoResultsFromForkerProcessesError;
|
|
|
1149
1231
|
* @summary Child Process Execution Error
|
|
1150
1232
|
* @category OpenSourceEcosystems
|
|
1151
1233
|
* @param {string} details the specific details that causes this error
|
|
1234
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
1152
1235
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
1153
1236
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
1154
1237
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -1161,6 +1244,7 @@ class ChildProcessExecutionError extends problem_error_1.ProblemError {
|
|
|
1161
1244
|
status: 500,
|
|
1162
1245
|
errorCode: 'SNYK-OS-NODEJS-0008',
|
|
1163
1246
|
level: 'error',
|
|
1247
|
+
classification: 'UNEXPECTED',
|
|
1164
1248
|
instance,
|
|
1165
1249
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
1166
1250
|
this.name = this.constructor.name;
|
|
@@ -1174,6 +1258,7 @@ exports.ChildProcessExecutionError = ChildProcessExecutionError;
|
|
|
1174
1258
|
* @summary No valid package upgrades
|
|
1175
1259
|
* @category OpenSourceEcosystems
|
|
1176
1260
|
* @param {string} details the specific details that causes this error
|
|
1261
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
1177
1262
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
1178
1263
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
1179
1264
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -1186,6 +1271,7 @@ class NoValidPackageUpgradesError extends problem_error_1.ProblemError {
|
|
|
1186
1271
|
status: 422,
|
|
1187
1272
|
errorCode: 'SNYK-OS-NODEJS-0009',
|
|
1188
1273
|
level: 'error',
|
|
1274
|
+
classification: 'ACTIONABLE',
|
|
1189
1275
|
instance,
|
|
1190
1276
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
1191
1277
|
this.name = this.constructor.name;
|
|
@@ -1199,6 +1285,7 @@ exports.NoValidPackageUpgradesError = NoValidPackageUpgradesError;
|
|
|
1199
1285
|
* @summary No dependency updates
|
|
1200
1286
|
* @category OpenSourceEcosystems
|
|
1201
1287
|
* @param {string} details the specific details that causes this error
|
|
1288
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
1202
1289
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
1203
1290
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
1204
1291
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -1211,6 +1298,7 @@ class NoDependencyUpdatesError extends problem_error_1.ProblemError {
|
|
|
1211
1298
|
status: 422,
|
|
1212
1299
|
errorCode: 'SNYK-OS-NODEJS-0010',
|
|
1213
1300
|
level: 'error',
|
|
1301
|
+
classification: 'ACTIONABLE',
|
|
1214
1302
|
instance,
|
|
1215
1303
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
1216
1304
|
this.name = this.constructor.name;
|
|
@@ -1224,6 +1312,7 @@ exports.NoDependencyUpdatesError = NoDependencyUpdatesError;
|
|
|
1224
1312
|
* @summary Could not parse JSON file
|
|
1225
1313
|
* @category OpenSourceEcosystems
|
|
1226
1314
|
* @param {string} details the specific details that causes this error
|
|
1315
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
1227
1316
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
1228
1317
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
1229
1318
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -1236,6 +1325,7 @@ class CouldNotParseJSONFileError extends problem_error_1.ProblemError {
|
|
|
1236
1325
|
status: 422,
|
|
1237
1326
|
errorCode: 'SNYK-OS-NODEJS-0011',
|
|
1238
1327
|
level: 'error',
|
|
1328
|
+
classification: 'ACTIONABLE',
|
|
1239
1329
|
instance,
|
|
1240
1330
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
1241
1331
|
this.name = this.constructor.name;
|
|
@@ -1249,6 +1339,7 @@ exports.CouldNotParseJSONFileError = CouldNotParseJSONFileError;
|
|
|
1249
1339
|
* @summary Could not Base64 encode
|
|
1250
1340
|
* @category OpenSourceEcosystems
|
|
1251
1341
|
* @param {string} details the specific details that causes this error
|
|
1342
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
1252
1343
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
1253
1344
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
1254
1345
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -1261,6 +1352,7 @@ class Base64EncodeError extends problem_error_1.ProblemError {
|
|
|
1261
1352
|
status: 422,
|
|
1262
1353
|
errorCode: 'SNYK-OS-NODEJS-0012',
|
|
1263
1354
|
level: 'error',
|
|
1355
|
+
classification: 'UNEXPECTED',
|
|
1264
1356
|
instance,
|
|
1265
1357
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
1266
1358
|
this.name = this.constructor.name;
|
|
@@ -1274,6 +1366,7 @@ exports.Base64EncodeError = Base64EncodeError;
|
|
|
1274
1366
|
* @summary Could not Base64 decode
|
|
1275
1367
|
* @category OpenSourceEcosystems
|
|
1276
1368
|
* @param {string} details the specific details that causes this error
|
|
1369
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
1277
1370
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
1278
1371
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
1279
1372
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -1286,6 +1379,7 @@ class Base64DecodeError extends problem_error_1.ProblemError {
|
|
|
1286
1379
|
status: 422,
|
|
1287
1380
|
errorCode: 'SNYK-OS-NODEJS-0013',
|
|
1288
1381
|
level: 'error',
|
|
1382
|
+
classification: 'UNEXPECTED',
|
|
1289
1383
|
instance,
|
|
1290
1384
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
1291
1385
|
this.name = this.constructor.name;
|
|
@@ -1299,6 +1393,7 @@ exports.Base64DecodeError = Base64DecodeError;
|
|
|
1299
1393
|
* @summary Missing supported file
|
|
1300
1394
|
* @category OpenSourceEcosystems
|
|
1301
1395
|
* @param {string} details the specific details that causes this error
|
|
1396
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
1302
1397
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
1303
1398
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
1304
1399
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -1311,6 +1406,7 @@ class MissingSupportedFileError extends problem_error_1.ProblemError {
|
|
|
1311
1406
|
status: 400,
|
|
1312
1407
|
errorCode: 'SNYK-OS-NODEJS-0014',
|
|
1313
1408
|
level: 'error',
|
|
1409
|
+
classification: 'ACTIONABLE',
|
|
1314
1410
|
instance,
|
|
1315
1411
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
1316
1412
|
this.name = this.constructor.name;
|
|
@@ -1324,6 +1420,7 @@ exports.MissingSupportedFileError = MissingSupportedFileError;
|
|
|
1324
1420
|
* @summary Invalid configuration
|
|
1325
1421
|
* @category OpenSourceEcosystems
|
|
1326
1422
|
* @param {string} details the specific details that causes this error
|
|
1423
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
1327
1424
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
1328
1425
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
1329
1426
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -1336,6 +1433,7 @@ class InvalidConfigurationError extends problem_error_1.ProblemError {
|
|
|
1336
1433
|
status: 400,
|
|
1337
1434
|
errorCode: 'SNYK-OS-NODEJS-0015',
|
|
1338
1435
|
level: 'warn',
|
|
1436
|
+
classification: 'ACTIONABLE',
|
|
1339
1437
|
instance,
|
|
1340
1438
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
1341
1439
|
this.name = this.constructor.name;
|
|
@@ -1352,6 +1450,7 @@ exports.InvalidConfigurationError = InvalidConfigurationError;
|
|
|
1352
1450
|
* @summary Unsupported manifest file type for remediation
|
|
1353
1451
|
* @category OpenSourceEcosystems
|
|
1354
1452
|
* @param {string} details the specific details that causes this error
|
|
1453
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
1355
1454
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
1356
1455
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
1357
1456
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -1364,6 +1463,7 @@ class UnsupportedRequirementsFileError extends problem_error_1.ProblemError {
|
|
|
1364
1463
|
status: 422,
|
|
1365
1464
|
errorCode: 'SNYK-OS-PIP-0001',
|
|
1366
1465
|
level: 'error',
|
|
1466
|
+
classification: 'UNSUPPORTED',
|
|
1367
1467
|
instance,
|
|
1368
1468
|
}, details, Object.assign({ links: [
|
|
1369
1469
|
'https://docs.snyk.io/scan-applications/supported-languages-and-frameworks/python',
|
|
@@ -1379,6 +1479,7 @@ exports.UnsupportedRequirementsFileError = UnsupportedRequirementsFileError;
|
|
|
1379
1479
|
* @summary Received more manifests than expected
|
|
1380
1480
|
* @category OpenSourceEcosystems
|
|
1381
1481
|
* @param {string} details the specific details that causes this error
|
|
1482
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
1382
1483
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
1383
1484
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
1384
1485
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -1391,6 +1492,7 @@ class TooManyManifestFilesError extends problem_error_1.ProblemError {
|
|
|
1391
1492
|
status: 422,
|
|
1392
1493
|
errorCode: 'SNYK-OS-PIP-0002',
|
|
1393
1494
|
level: 'error',
|
|
1495
|
+
classification: 'UNSUPPORTED',
|
|
1394
1496
|
instance,
|
|
1395
1497
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
1396
1498
|
this.name = this.constructor.name;
|
|
@@ -1404,6 +1506,7 @@ exports.TooManyManifestFilesError = TooManyManifestFilesError;
|
|
|
1404
1506
|
* @summary Failed to apply dependency updates
|
|
1405
1507
|
* @category OpenSourceEcosystems
|
|
1406
1508
|
* @param {string} details the specific details that causes this error
|
|
1509
|
+
* @param {string} classification the error classification determining if the error is user-actionable or not
|
|
1407
1510
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
1408
1511
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
1409
1512
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
@@ -1416,6 +1519,7 @@ class FailedToApplyDependencyUpdatesError extends problem_error_1.ProblemError {
|
|
|
1416
1519
|
status: 422,
|
|
1417
1520
|
errorCode: 'SNYK-OS-PIP-0003',
|
|
1418
1521
|
level: 'error',
|
|
1522
|
+
classification: 'UNEXPECTED',
|
|
1419
1523
|
instance,
|
|
1420
1524
|
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
1421
1525
|
this.name = this.constructor.name;
|