@snyk/error-catalog-nodejs-public 3.16.0

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.
Files changed (56) hide show
  1. package/README.md +7 -0
  2. package/package.json +15 -0
  3. package/src/catalogs/Fix-error-catalog.d.ts +100 -0
  4. package/src/catalogs/Fix-error-catalog.js +180 -0
  5. package/src/catalogs/Fix-error-catalog.js.map +1 -0
  6. package/src/catalogs/IsolatedBuilds-error-catalog.d.ts +32 -0
  7. package/src/catalogs/IsolatedBuilds-error-catalog.js +60 -0
  8. package/src/catalogs/IsolatedBuilds-error-catalog.js.map +1 -0
  9. package/src/catalogs/OpenAPI-error-catalog.d.ts +119 -0
  10. package/src/catalogs/OpenAPI-error-catalog.js +215 -0
  11. package/src/catalogs/OpenAPI-error-catalog.js.map +1 -0
  12. package/src/catalogs/OpenSourceEcosystems-error-catalog.d.ts +771 -0
  13. package/src/catalogs/OpenSourceEcosystems-error-catalog.js +1371 -0
  14. package/src/catalogs/OpenSourceEcosystems-error-catalog.js.map +1 -0
  15. package/src/catalogs/OpenSourceProjectIssues-error-catalog.d.ts +71 -0
  16. package/src/catalogs/OpenSourceProjectIssues-error-catalog.js +130 -0
  17. package/src/catalogs/OpenSourceProjectIssues-error-catalog.js.map +1 -0
  18. package/src/catalogs/OpenSourceProjectSnapshots-error-catalog.d.ts +71 -0
  19. package/src/catalogs/OpenSourceProjectSnapshots-error-catalog.js +130 -0
  20. package/src/catalogs/OpenSourceProjectSnapshots-error-catalog.js.map +1 -0
  21. package/src/catalogs/OpenSourceUnmanaged-error-catalog.d.ts +36 -0
  22. package/src/catalogs/OpenSourceUnmanaged-error-catalog.js +67 -0
  23. package/src/catalogs/OpenSourceUnmanaged-error-catalog.js.map +1 -0
  24. package/src/catalogs/PurlVulnerabilityFetching-error-catalog.d.ts +290 -0
  25. package/src/catalogs/PurlVulnerabilityFetching-error-catalog.js +520 -0
  26. package/src/catalogs/PurlVulnerabilityFetching-error-catalog.js.map +1 -0
  27. package/src/catalogs/SbomExport-error-catalog.d.ts +130 -0
  28. package/src/catalogs/SbomExport-error-catalog.js +235 -0
  29. package/src/catalogs/SbomExport-error-catalog.js.map +1 -0
  30. package/src/catalogs/Snyk-error-catalog.d.ts +94 -0
  31. package/src/catalogs/Snyk-error-catalog.js +170 -0
  32. package/src/catalogs/Snyk-error-catalog.js.map +1 -0
  33. package/src/catalogs/error-catalog.d.ts +10 -0
  34. package/src/catalogs/error-catalog.js +14 -0
  35. package/src/catalogs/error-catalog.js.map +1 -0
  36. package/src/catalogs/error-codes.d.ts +138 -0
  37. package/src/catalogs/error-codes.js +140 -0
  38. package/src/catalogs/error-codes.js.map +1 -0
  39. package/src/composite-error.d.ts +13 -0
  40. package/src/composite-error.js +27 -0
  41. package/src/composite-error.js.map +1 -0
  42. package/src/index.d.ts +3 -0
  43. package/src/index.js +7 -0
  44. package/src/index.js.map +1 -0
  45. package/src/problem-error.d.ts +20 -0
  46. package/src/problem-error.js +78 -0
  47. package/src/problem-error.js.map +1 -0
  48. package/src/types.d.ts +66 -0
  49. package/src/types.js +35 -0
  50. package/src/types.js.map +1 -0
  51. package/src/util/index.d.ts +1 -0
  52. package/src/util/index.js +5 -0
  53. package/src/util/index.js.map +1 -0
  54. package/src/util/json-api.d.ts +7 -0
  55. package/src/util/json-api.js +70 -0
  56. package/src/util/json-api.js.map +1 -0
@@ -0,0 +1,1371 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UnableToReplaceBrokerURLError = exports.CouldNotFindBrokerURLError = exports.CouldNotParseNPMRegistryURLError = exports.NoRepoFoundForTheNPMPackageError = exports.CannotCreateGitHostError = exports.CannotGetBuildFileFromRepoError = exports.CannotResolveTargetPomFromRepoError = exports.CannotResolveTargetPomFromXmlError = exports.MissingProjectFromPomError = exports.PomFileNotFoundError = exports.SkippedGroupError = exports.InvalidCoordinatesError = exports.UnableToParseXMLError = exports.CyclicPropertyDetectedInPomFileError = exports.UnableToResolveVersionForPropertyError = exports.UnableToResolveValueForPropertyError = exports.MissingRequirementFromPomError = exports.IncompleteProjectError = exports.SsoReAuthRequiredError = exports.GoModFileMissingError = exports.PrivateModuleError = exports.UnsupportedTargetFrameworkError = exports.UnsupportedManifestFileError = exports.InvalidConfigurationError = exports.FailedToRelockError = exports.NoOutputFromIsolatedBuildsError = exports.MissingEnvironmentVariableError = exports.MissingSupportedFileError = exports.Base64DecodeError = exports.Base64EncodeError = exports.CouldNotParseJSONFileError = exports.MissingRequiredRequestHeaderError = exports.NoDependencyUpdatesError = exports.NoValidPackageUpgradesError = exports.ChildProcessExecutionError = exports.NoResultsFromForkerProcessesError = exports.UnknownBlobEncodingOnGithubError = exports.FailedToApplyDependencyUpdatesError = exports.TooManyManifestFilesError = exports.TimeoutWhenProcessingTheDepTreeError = exports.NoReleasedVersionForVersionsRangeError = exports.CannotGetFileFromSourceError = exports.SourceNotSupportedError = exports.UnprocessableFileError = exports.MissingPayloadError = exports.UnknownDependencyVersionError = exports.UnparseableLockFileError = exports.LockFileOutOfSyncError = exports.UnparseableManifestError = exports.UnsupportedEcosystemError = void 0;
4
+ exports.UnsupportedRequirementsFileError = exports.BadNPMVersionError = void 0;
5
+ const problem_error_1 = require("../problem-error");
6
+ /**
7
+ * @class
8
+ * @name UnsupportedEcosystemError
9
+ * @description The language or package manager is not supported.
10
+ *
11
+ * See more:
12
+ * - [https://docs.snyk.io/products/snyk-open-source/language-and-package-manager-support](https://docs.snyk.io/products/snyk-open-source/language-and-package-manager-support)
13
+ * @summary Unsupported Ecosystem
14
+ * @category OpenSourceEcosystems
15
+ * @param {string} details the specific details that causes this error
16
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
17
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
18
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
19
+ */
20
+ class UnsupportedEcosystemError extends problem_error_1.ProblemError {
21
+ constructor(details, additionalData, cause, instance) {
22
+ super({
23
+ title: 'Unsupported Ecosystem',
24
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0001',
25
+ status: 400,
26
+ errorCode: 'SNYK-OS-0001',
27
+ level: 'error',
28
+ instance,
29
+ }, details, Object.assign({ links: [
30
+ 'https://docs.snyk.io/products/snyk-open-source/language-and-package-manager-support',
31
+ ] }, additionalData), cause);
32
+ this.name = this.constructor.name;
33
+ }
34
+ }
35
+ exports.UnsupportedEcosystemError = UnsupportedEcosystemError;
36
+ /**
37
+ * @class
38
+ * @name UnparseableManifestError
39
+ * @description The provided manifest file could not be parsed as it has invalid syntax or does not match the expected schema. Review the manifest file, then try again.
40
+ * @summary Unable to parse manifest file
41
+ * @category OpenSourceEcosystems
42
+ * @param {string} details the specific details that causes this error
43
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
44
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
45
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
46
+ */
47
+ class UnparseableManifestError extends problem_error_1.ProblemError {
48
+ constructor(details, additionalData, cause, instance) {
49
+ super({
50
+ title: 'Unable to parse manifest file',
51
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0002',
52
+ status: 400,
53
+ errorCode: 'SNYK-OS-0002',
54
+ level: 'error',
55
+ instance,
56
+ }, details, Object.assign({ links: [] }, additionalData), cause);
57
+ this.name = this.constructor.name;
58
+ }
59
+ }
60
+ exports.UnparseableManifestError = UnparseableManifestError;
61
+ /**
62
+ * @class
63
+ * @name LockFileOutOfSyncError
64
+ * @description Some of the dependencies that are expected to be in the lock file are missing, usually indicating that the lock file is out of sync with the provided manifest file. Re-sync the lock file, then try again.
65
+ * @summary Lock file out of sync with manifest file
66
+ * @category OpenSourceEcosystems
67
+ * @param {string} details the specific details that causes this error
68
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
69
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
70
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
71
+ */
72
+ class LockFileOutOfSyncError extends problem_error_1.ProblemError {
73
+ constructor(details, additionalData, cause, instance) {
74
+ super({
75
+ title: 'Lock file out of sync with manifest file',
76
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0003',
77
+ status: 400,
78
+ errorCode: 'SNYK-OS-0003',
79
+ level: 'error',
80
+ instance,
81
+ }, details, Object.assign({ links: [] }, additionalData), cause);
82
+ this.name = this.constructor.name;
83
+ }
84
+ }
85
+ exports.LockFileOutOfSyncError = LockFileOutOfSyncError;
86
+ /**
87
+ * @class
88
+ * @name UnparseableLockFileError
89
+ * @description The provided lock file could not be parsed as it has invalid syntax or does not match the expected schema. Review the lock file, then try again.
90
+ * @summary Unable to parse lock file
91
+ * @category OpenSourceEcosystems
92
+ * @param {string} details the specific details that causes this error
93
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
94
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
95
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
96
+ */
97
+ class UnparseableLockFileError extends problem_error_1.ProblemError {
98
+ constructor(details, additionalData, cause, instance) {
99
+ super({
100
+ title: 'Unable to parse lock file',
101
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0004',
102
+ status: 400,
103
+ errorCode: 'SNYK-OS-0004',
104
+ level: 'error',
105
+ instance,
106
+ }, details, Object.assign({ links: [] }, additionalData), cause);
107
+ this.name = this.constructor.name;
108
+ }
109
+ }
110
+ exports.UnparseableLockFileError = UnparseableLockFileError;
111
+ /**
112
+ * @class
113
+ * @name UnknownDependencyVersionError
114
+ * @description Dependency version could not be resolved.
115
+ *
116
+ * See more:
117
+ * - [https://support.snyk.io/hc/en-us/articles/360001373178-Could-not-determine-version-for-dependencies](https://support.snyk.io/hc/en-us/articles/360001373178-Could-not-determine-version-for-dependencies)
118
+ * @summary Unknown dependency version
119
+ * @category OpenSourceEcosystems
120
+ * @param {string} details the specific details that causes this error
121
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
122
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
123
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
124
+ */
125
+ class UnknownDependencyVersionError extends problem_error_1.ProblemError {
126
+ constructor(details, additionalData, cause, instance) {
127
+ super({
128
+ title: 'Unknown dependency version',
129
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0005',
130
+ status: 404,
131
+ errorCode: 'SNYK-OS-0005',
132
+ level: 'warn',
133
+ instance,
134
+ }, details, Object.assign({ links: [
135
+ 'https://support.snyk.io/hc/en-us/articles/360001373178-Could-not-determine-version-for-dependencies',
136
+ ] }, additionalData), cause);
137
+ this.name = this.constructor.name;
138
+ }
139
+ }
140
+ exports.UnknownDependencyVersionError = UnknownDependencyVersionError;
141
+ /**
142
+ * @class
143
+ * @name MissingPayloadError
144
+ * @description The server could not process the request.
145
+ * @summary Payload missing required elements
146
+ * @category OpenSourceEcosystems
147
+ * @param {string} details the specific details that causes this error
148
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
149
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
150
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
151
+ */
152
+ class MissingPayloadError extends problem_error_1.ProblemError {
153
+ constructor(details, additionalData, cause, instance) {
154
+ super({
155
+ title: 'Payload missing required elements',
156
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0006',
157
+ status: 422,
158
+ errorCode: 'SNYK-OS-0006',
159
+ level: 'error',
160
+ instance,
161
+ }, details, Object.assign({ links: [] }, additionalData), cause);
162
+ this.name = this.constructor.name;
163
+ }
164
+ }
165
+ exports.MissingPayloadError = MissingPayloadError;
166
+ /**
167
+ * @class
168
+ * @name UnprocessableFileError
169
+ * @description The dependency service could not process the files.
170
+ * @summary Files cannot be processed
171
+ * @category OpenSourceEcosystems
172
+ * @param {string} details the specific details that causes this error
173
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
174
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
175
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
176
+ */
177
+ class UnprocessableFileError extends problem_error_1.ProblemError {
178
+ constructor(details, additionalData, cause, instance) {
179
+ super({
180
+ title: 'Files cannot be processed',
181
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0007',
182
+ status: 422,
183
+ errorCode: 'SNYK-OS-0007',
184
+ level: 'error',
185
+ instance,
186
+ }, details, Object.assign({ links: [] }, additionalData), cause);
187
+ this.name = this.constructor.name;
188
+ }
189
+ }
190
+ exports.UnprocessableFileError = UnprocessableFileError;
191
+ /**
192
+ * @class
193
+ * @name SourceNotSupportedError
194
+ * @description The source used is not supported by fetcher. The supported sources are: github, bitbucket, gitlab.
195
+ * @summary Source is not supported
196
+ * @category OpenSourceEcosystems
197
+ * @param {string} details the specific details that causes this error
198
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
199
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
200
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
201
+ */
202
+ class SourceNotSupportedError extends problem_error_1.ProblemError {
203
+ constructor(details, additionalData, cause, instance) {
204
+ super({
205
+ title: 'Source is not supported',
206
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0008',
207
+ status: 422,
208
+ errorCode: 'SNYK-OS-0008',
209
+ level: 'error',
210
+ instance,
211
+ }, details, Object.assign({ links: [] }, additionalData), cause);
212
+ this.name = this.constructor.name;
213
+ }
214
+ }
215
+ exports.SourceNotSupportedError = SourceNotSupportedError;
216
+ /**
217
+ * @class
218
+ * @name CannotGetFileFromSourceError
219
+ * @description Could not get the file from the source URL.
220
+ * @summary Cannot get file from source
221
+ * @category OpenSourceEcosystems
222
+ * @param {string} details the specific details that causes this error
223
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
224
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
225
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
226
+ */
227
+ class CannotGetFileFromSourceError extends problem_error_1.ProblemError {
228
+ constructor(details, additionalData, cause, instance) {
229
+ super({
230
+ title: 'Cannot get file from source',
231
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0009',
232
+ status: 500,
233
+ errorCode: 'SNYK-OS-0009',
234
+ level: 'error',
235
+ instance,
236
+ }, details, Object.assign({ links: [] }, additionalData), cause);
237
+ this.name = this.constructor.name;
238
+ }
239
+ }
240
+ exports.CannotGetFileFromSourceError = CannotGetFileFromSourceError;
241
+ /**
242
+ * @class
243
+ * @name NoReleasedVersionForVersionsRangeError
244
+ * @description There was no version released for the specified versions range.
245
+ * @summary No released version for versions range
246
+ * @category OpenSourceEcosystems
247
+ * @param {string} details the specific details that causes this error
248
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
249
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
250
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
251
+ */
252
+ class NoReleasedVersionForVersionsRangeError extends problem_error_1.ProblemError {
253
+ constructor(details, additionalData, cause, instance) {
254
+ super({
255
+ title: 'No released version for versions range',
256
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0010',
257
+ status: 422,
258
+ errorCode: 'SNYK-OS-0010',
259
+ level: 'error',
260
+ instance,
261
+ }, details, Object.assign({ links: [] }, additionalData), cause);
262
+ this.name = this.constructor.name;
263
+ }
264
+ }
265
+ exports.NoReleasedVersionForVersionsRangeError = NoReleasedVersionForVersionsRangeError;
266
+ /**
267
+ * @class
268
+ * @name TimeoutWhenProcessingTheDepTreeError
269
+ * @description There was an timeout when processing the dependecy tree.
270
+ * @summary Timeout when processing the dependency tree
271
+ * @category OpenSourceEcosystems
272
+ * @param {string} details the specific details that causes this error
273
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
274
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
275
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
276
+ */
277
+ class TimeoutWhenProcessingTheDepTreeError extends problem_error_1.ProblemError {
278
+ constructor(details, additionalData, cause, instance) {
279
+ super({
280
+ title: 'Timeout when processing the dependency tree',
281
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0011',
282
+ status: 422,
283
+ errorCode: 'SNYK-OS-0011',
284
+ level: 'error',
285
+ instance,
286
+ }, details, Object.assign({ links: [] }, additionalData), cause);
287
+ this.name = this.constructor.name;
288
+ }
289
+ }
290
+ exports.TimeoutWhenProcessingTheDepTreeError = TimeoutWhenProcessingTheDepTreeError;
291
+ /**
292
+ * @class
293
+ * @name TooManyManifestFilesError
294
+ * @description Too many manifest files were provided in the request body.
295
+ * @summary Received more manifests than expected
296
+ * @category OpenSourceEcosystems
297
+ * @param {string} details the specific details that causes this error
298
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
299
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
300
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
301
+ */
302
+ class TooManyManifestFilesError extends problem_error_1.ProblemError {
303
+ constructor(details, additionalData, cause, instance) {
304
+ super({
305
+ title: 'Received more manifests than expected',
306
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0012',
307
+ status: 422,
308
+ errorCode: 'SNYK-OS-0012',
309
+ level: 'error',
310
+ instance,
311
+ }, details, Object.assign({ links: [] }, additionalData), cause);
312
+ this.name = this.constructor.name;
313
+ }
314
+ }
315
+ exports.TooManyManifestFilesError = TooManyManifestFilesError;
316
+ /**
317
+ * @class
318
+ * @name FailedToApplyDependencyUpdatesError
319
+ * @description An error occured while updating dependencies.
320
+ * @summary Failed to apply dependency updates
321
+ * @category OpenSourceEcosystems
322
+ * @param {string} details the specific details that causes this error
323
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
324
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
325
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
326
+ */
327
+ class FailedToApplyDependencyUpdatesError extends problem_error_1.ProblemError {
328
+ constructor(details, additionalData, cause, instance) {
329
+ super({
330
+ title: 'Failed to apply dependency updates',
331
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0013',
332
+ status: 422,
333
+ errorCode: 'SNYK-OS-0013',
334
+ level: 'error',
335
+ instance,
336
+ }, details, Object.assign({ links: [] }, additionalData), cause);
337
+ this.name = this.constructor.name;
338
+ }
339
+ }
340
+ exports.FailedToApplyDependencyUpdatesError = FailedToApplyDependencyUpdatesError;
341
+ /**
342
+ * @class
343
+ * @name UnknownBlobEncodingOnGithubError
344
+ * @description Unknown blob encoding on Github.
345
+ * @summary Unknown blob encoding on Github
346
+ * @category OpenSourceEcosystems
347
+ * @param {string} details the specific details that causes this error
348
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
349
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
350
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
351
+ */
352
+ class UnknownBlobEncodingOnGithubError extends problem_error_1.ProblemError {
353
+ constructor(details, additionalData, cause, instance) {
354
+ super({
355
+ title: 'Unknown blob encoding on Github',
356
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0014',
357
+ status: 422,
358
+ errorCode: 'SNYK-OS-0014',
359
+ level: 'error',
360
+ instance,
361
+ }, details, Object.assign({ links: [] }, additionalData), cause);
362
+ this.name = this.constructor.name;
363
+ }
364
+ }
365
+ exports.UnknownBlobEncodingOnGithubError = UnknownBlobEncodingOnGithubError;
366
+ /**
367
+ * @class
368
+ * @name NoResultsFromForkerProcessesError
369
+ * @description No result from forked process.
370
+ * @summary No result from forked process
371
+ * @category OpenSourceEcosystems
372
+ * @param {string} details the specific details that causes this error
373
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
374
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
375
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
376
+ */
377
+ class NoResultsFromForkerProcessesError extends problem_error_1.ProblemError {
378
+ constructor(details, additionalData, cause, instance) {
379
+ super({
380
+ title: 'No result from forked process',
381
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0015',
382
+ status: 500,
383
+ errorCode: 'SNYK-OS-0015',
384
+ level: 'error',
385
+ instance,
386
+ }, details, Object.assign({ links: [] }, additionalData), cause);
387
+ this.name = this.constructor.name;
388
+ }
389
+ }
390
+ exports.NoResultsFromForkerProcessesError = NoResultsFromForkerProcessesError;
391
+ /**
392
+ * @class
393
+ * @name ChildProcessExecutionError
394
+ * @description The child process encountered an error during execution.
395
+ * @summary Child Process Execution Error
396
+ * @category OpenSourceEcosystems
397
+ * @param {string} details the specific details that causes this error
398
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
399
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
400
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
401
+ */
402
+ class ChildProcessExecutionError extends problem_error_1.ProblemError {
403
+ constructor(details, additionalData, cause, instance) {
404
+ super({
405
+ title: 'Child Process Execution Error',
406
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0016',
407
+ status: 500,
408
+ errorCode: 'SNYK-OS-0016',
409
+ level: 'error',
410
+ instance,
411
+ }, details, Object.assign({ links: [] }, additionalData), cause);
412
+ this.name = this.constructor.name;
413
+ }
414
+ }
415
+ exports.ChildProcessExecutionError = ChildProcessExecutionError;
416
+ /**
417
+ * @class
418
+ * @name NoValidPackageUpgradesError
419
+ * @description The system attempted to find valid upgrades for the packages specified in the lock file, but none were available.
420
+ * @summary No valid package upgrades
421
+ * @category OpenSourceEcosystems
422
+ * @param {string} details the specific details that causes this error
423
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
424
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
425
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
426
+ */
427
+ class NoValidPackageUpgradesError extends problem_error_1.ProblemError {
428
+ constructor(details, additionalData, cause, instance) {
429
+ super({
430
+ title: 'No valid package upgrades',
431
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0017',
432
+ status: 422,
433
+ errorCode: 'SNYK-OS-0017',
434
+ level: 'error',
435
+ instance,
436
+ }, details, Object.assign({ links: [] }, additionalData), cause);
437
+ this.name = this.constructor.name;
438
+ }
439
+ }
440
+ exports.NoValidPackageUpgradesError = NoValidPackageUpgradesError;
441
+ /**
442
+ * @class
443
+ * @name NoDependencyUpdatesError
444
+ * @description There are no available updates for the dependencies.
445
+ * @summary No dependency updates
446
+ * @category OpenSourceEcosystems
447
+ * @param {string} details the specific details that causes this error
448
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
449
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
450
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
451
+ */
452
+ class NoDependencyUpdatesError extends problem_error_1.ProblemError {
453
+ constructor(details, additionalData, cause, instance) {
454
+ super({
455
+ title: 'No dependency updates',
456
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0018',
457
+ status: 422,
458
+ errorCode: 'SNYK-OS-0018',
459
+ level: 'error',
460
+ instance,
461
+ }, details, Object.assign({ links: [] }, additionalData), cause);
462
+ this.name = this.constructor.name;
463
+ }
464
+ }
465
+ exports.NoDependencyUpdatesError = NoDependencyUpdatesError;
466
+ /**
467
+ * @class
468
+ * @name MissingRequiredRequestHeaderError
469
+ * @description The server encountered a request that is missing a mandatory request header.
470
+ * @summary Missing required request header
471
+ * @category OpenSourceEcosystems
472
+ * @param {string} details the specific details that causes this error
473
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
474
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
475
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
476
+ */
477
+ class MissingRequiredRequestHeaderError extends problem_error_1.ProblemError {
478
+ constructor(details, additionalData, cause, instance) {
479
+ super({
480
+ title: 'Missing required request header',
481
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0019',
482
+ status: 422,
483
+ errorCode: 'SNYK-OS-0019',
484
+ level: 'error',
485
+ instance,
486
+ }, details, Object.assign({ links: [] }, additionalData), cause);
487
+ this.name = this.constructor.name;
488
+ }
489
+ }
490
+ exports.MissingRequiredRequestHeaderError = MissingRequiredRequestHeaderError;
491
+ /**
492
+ * @class
493
+ * @name CouldNotParseJSONFileError
494
+ * @description An error occurred while attempting to parse a JSON file.
495
+ * @summary Could not parse JSON file
496
+ * @category OpenSourceEcosystems
497
+ * @param {string} details the specific details that causes this error
498
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
499
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
500
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
501
+ */
502
+ class CouldNotParseJSONFileError extends problem_error_1.ProblemError {
503
+ constructor(details, additionalData, cause, instance) {
504
+ super({
505
+ title: 'Could not parse JSON file',
506
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0020',
507
+ status: 422,
508
+ errorCode: 'SNYK-OS-0020',
509
+ level: 'error',
510
+ instance,
511
+ }, details, Object.assign({ links: [] }, additionalData), cause);
512
+ this.name = this.constructor.name;
513
+ }
514
+ }
515
+ exports.CouldNotParseJSONFileError = CouldNotParseJSONFileError;
516
+ /**
517
+ * @class
518
+ * @name Base64EncodeError
519
+ * @description An error occurred while attempting to perform Base64 encoding.
520
+ * @summary Could not Base64 encode
521
+ * @category OpenSourceEcosystems
522
+ * @param {string} details the specific details that causes this error
523
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
524
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
525
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
526
+ */
527
+ class Base64EncodeError extends problem_error_1.ProblemError {
528
+ constructor(details, additionalData, cause, instance) {
529
+ super({
530
+ title: 'Could not Base64 encode',
531
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0021',
532
+ status: 422,
533
+ errorCode: 'SNYK-OS-0021',
534
+ level: 'error',
535
+ instance,
536
+ }, details, Object.assign({ links: [] }, additionalData), cause);
537
+ this.name = this.constructor.name;
538
+ }
539
+ }
540
+ exports.Base64EncodeError = Base64EncodeError;
541
+ /**
542
+ * @class
543
+ * @name Base64DecodeError
544
+ * @description An error occurred while attempting to perform Base64 decoding.
545
+ * @summary Could not Base64 decode
546
+ * @category OpenSourceEcosystems
547
+ * @param {string} details the specific details that causes this error
548
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
549
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
550
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
551
+ */
552
+ class Base64DecodeError extends problem_error_1.ProblemError {
553
+ constructor(details, additionalData, cause, instance) {
554
+ super({
555
+ title: 'Could not Base64 decode',
556
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0022',
557
+ status: 422,
558
+ errorCode: 'SNYK-OS-0022',
559
+ level: 'error',
560
+ instance,
561
+ }, details, Object.assign({ links: [] }, additionalData), cause);
562
+ this.name = this.constructor.name;
563
+ }
564
+ }
565
+ exports.Base64DecodeError = Base64DecodeError;
566
+ /**
567
+ * @class
568
+ * @name MissingSupportedFileError
569
+ * @description Could not find supported file.
570
+ * @summary Missing supported file
571
+ * @category OpenSourceEcosystems
572
+ * @param {string} details the specific details that causes this error
573
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
574
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
575
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
576
+ */
577
+ class MissingSupportedFileError extends problem_error_1.ProblemError {
578
+ constructor(details, additionalData, cause, instance) {
579
+ super({
580
+ title: 'Missing supported file',
581
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0023',
582
+ status: 400,
583
+ errorCode: 'SNYK-OS-0023',
584
+ level: 'error',
585
+ instance,
586
+ }, details, Object.assign({ links: [] }, additionalData), cause);
587
+ this.name = this.constructor.name;
588
+ }
589
+ }
590
+ exports.MissingSupportedFileError = MissingSupportedFileError;
591
+ /**
592
+ * @class
593
+ * @name MissingEnvironmentVariableError
594
+ * @description The server encountered a critical operation that requires a specific environment variable, but the variable is not set or is not accessible within the current environment.
595
+ * @summary Missing environment variable
596
+ * @category OpenSourceEcosystems
597
+ * @param {string} details the specific details that causes this error
598
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
599
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
600
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
601
+ */
602
+ class MissingEnvironmentVariableError extends problem_error_1.ProblemError {
603
+ constructor(details, additionalData, cause, instance) {
604
+ super({
605
+ title: 'Missing environment variable',
606
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0024',
607
+ status: 500,
608
+ errorCode: 'SNYK-OS-0024',
609
+ level: 'error',
610
+ instance,
611
+ }, details, Object.assign({ links: [] }, additionalData), cause);
612
+ this.name = this.constructor.name;
613
+ }
614
+ }
615
+ exports.MissingEnvironmentVariableError = MissingEnvironmentVariableError;
616
+ /**
617
+ * @class
618
+ * @name NoOutputFromIsolatedBuildsError
619
+ * @description The response from isolated builds had no output.
620
+ * @summary No output from isolated builds
621
+ * @category OpenSourceEcosystems
622
+ * @param {string} details the specific details that causes this error
623
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
624
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
625
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
626
+ */
627
+ class NoOutputFromIsolatedBuildsError extends problem_error_1.ProblemError {
628
+ constructor(details, additionalData, cause, instance) {
629
+ super({
630
+ title: 'No output from isolated builds',
631
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0025',
632
+ status: 500,
633
+ errorCode: 'SNYK-OS-0025',
634
+ level: 'warn',
635
+ instance,
636
+ }, details, Object.assign({ links: [] }, additionalData), cause);
637
+ this.name = this.constructor.name;
638
+ }
639
+ }
640
+ exports.NoOutputFromIsolatedBuildsError = NoOutputFromIsolatedBuildsError;
641
+ /**
642
+ * @class
643
+ * @name FailedToRelockError
644
+ * @description An error occurred while attempting to relock.
645
+ * @summary Failed to relock
646
+ * @category OpenSourceEcosystems
647
+ * @param {string} details the specific details that causes this error
648
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
649
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
650
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
651
+ */
652
+ class FailedToRelockError extends problem_error_1.ProblemError {
653
+ constructor(details, additionalData, cause, instance) {
654
+ super({
655
+ title: 'Failed to relock',
656
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0026',
657
+ status: 500,
658
+ errorCode: 'SNYK-OS-0026',
659
+ level: 'warn',
660
+ instance,
661
+ }, details, Object.assign({ links: [] }, additionalData), cause);
662
+ this.name = this.constructor.name;
663
+ }
664
+ }
665
+ exports.FailedToRelockError = FailedToRelockError;
666
+ /**
667
+ * @class
668
+ * @name InvalidConfigurationError
669
+ * @description The configuration parameter does not meet the expected data type. Please ensure the provided value is of the correct data type.
670
+ * @summary Invalid configuration
671
+ * @category OpenSourceEcosystems
672
+ * @param {string} details the specific details that causes this error
673
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
674
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
675
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
676
+ */
677
+ class InvalidConfigurationError extends problem_error_1.ProblemError {
678
+ constructor(details, additionalData, cause, instance) {
679
+ super({
680
+ title: 'Invalid configuration',
681
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-0027',
682
+ status: 400,
683
+ errorCode: 'SNYK-OS-0027',
684
+ level: 'warn',
685
+ instance,
686
+ }, details, Object.assign({ links: [] }, additionalData), cause);
687
+ this.name = this.constructor.name;
688
+ }
689
+ }
690
+ exports.InvalidConfigurationError = InvalidConfigurationError;
691
+ /**
692
+ * @class
693
+ * @name UnsupportedManifestFileError
694
+ * @description The provided manifest file is not supported by Snyk for .NET.
695
+ *
696
+ * See more:
697
+ * - [https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-.net#git-services-for-.net-projects](https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-.net#git-services-for-.net-projects)
698
+ * - [https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-.net#dependencies-managed-by-packagereference](https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-.net#dependencies-managed-by-packagereference)
699
+ * - [https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-.net#dependencies-managed-by-packages.config](https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-.net#dependencies-managed-by-packages.config)
700
+ * - [https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-.net#paket-dependencies-managed-by-paket](https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-.net#paket-dependencies-managed-by-paket)
701
+ * @summary Unsupported manifest file type for remediation
702
+ * @category OpenSourceEcosystems
703
+ * @param {string} details the specific details that causes this error
704
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
705
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
706
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
707
+ */
708
+ class UnsupportedManifestFileError extends problem_error_1.ProblemError {
709
+ constructor(details, additionalData, cause, instance) {
710
+ super({
711
+ title: 'Unsupported manifest file type for remediation',
712
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-dotnet-0001',
713
+ status: 400,
714
+ errorCode: 'SNYK-OS-DOTNET-0001',
715
+ level: 'error',
716
+ instance,
717
+ }, details, Object.assign({ links: [
718
+ 'https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-.net#git-services-for-.net-projects',
719
+ 'https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-.net#dependencies-managed-by-packagereference',
720
+ 'https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-.net#dependencies-managed-by-packages.config',
721
+ 'https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-.net#paket-dependencies-managed-by-paket',
722
+ ] }, additionalData), cause);
723
+ this.name = this.constructor.name;
724
+ }
725
+ }
726
+ exports.UnsupportedManifestFileError = UnsupportedManifestFileError;
727
+ /**
728
+ * @class
729
+ * @name UnsupportedTargetFrameworkError
730
+ * @description The provided manifest file defines a `<TargetFramework>` or `<TargetFrameworks>` that is not currently supported by Snyk's .NET scanning solution.
731
+ * @summary Target framework not supported
732
+ * @category OpenSourceEcosystems
733
+ * @param {string} details the specific details that causes this error
734
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
735
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
736
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
737
+ */
738
+ class UnsupportedTargetFrameworkError extends problem_error_1.ProblemError {
739
+ constructor(details, additionalData, cause, instance) {
740
+ super({
741
+ title: 'Target framework not supported',
742
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-dotnet-0002',
743
+ status: 422,
744
+ errorCode: 'SNYK-OS-DOTNET-0002',
745
+ level: 'error',
746
+ instance,
747
+ }, details, Object.assign({ links: [] }, additionalData), cause);
748
+ this.name = this.constructor.name;
749
+ }
750
+ }
751
+ exports.UnsupportedTargetFrameworkError = UnsupportedTargetFrameworkError;
752
+ /**
753
+ * @class
754
+ * @name PrivateModuleError
755
+ * @description Snyk could not access the private modules within your go.mod files.
756
+ *
757
+ * See more:
758
+ * - [https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-golang#go-modules-and-snyk-cli](https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-golang#go-modules-and-snyk-cli)
759
+ * - [https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-golang#go-modules-and-git](https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-golang#go-modules-and-git)
760
+ * @summary Failed to access private module
761
+ * @category OpenSourceEcosystems
762
+ * @param {string} details the specific details that causes this error
763
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
764
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
765
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
766
+ */
767
+ class PrivateModuleError extends problem_error_1.ProblemError {
768
+ constructor(details, additionalData, cause, instance) {
769
+ super({
770
+ title: 'Failed to access private module',
771
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-go-0001',
772
+ status: 400,
773
+ errorCode: 'SNYK-OS-GO-0001',
774
+ level: 'error',
775
+ instance,
776
+ }, details, Object.assign({ links: [
777
+ 'https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-golang#go-modules-and-snyk-cli',
778
+ 'https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-golang#go-modules-and-git',
779
+ ] }, additionalData), cause);
780
+ this.name = this.constructor.name;
781
+ }
782
+ }
783
+ exports.PrivateModuleError = PrivateModuleError;
784
+ /**
785
+ * @class
786
+ * @name GoModFileMissingError
787
+ * @description A go.mod file was not found in the current directory or any parent directory.
788
+ *
789
+ * See more:
790
+ * - [https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-golang#go-modules-and-snyk-cli](https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-golang#go-modules-and-snyk-cli)
791
+ * - [https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-golang#go-modules-and-git](https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-golang#go-modules-and-git)
792
+ * @summary Go mod file not found
793
+ * @category OpenSourceEcosystems
794
+ * @param {string} details the specific details that causes this error
795
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
796
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
797
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
798
+ */
799
+ class GoModFileMissingError extends problem_error_1.ProblemError {
800
+ constructor(details, additionalData, cause, instance) {
801
+ super({
802
+ title: 'Go mod file not found',
803
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-go-0002',
804
+ status: 400,
805
+ errorCode: 'SNYK-OS-GO-0002',
806
+ level: 'error',
807
+ instance,
808
+ }, details, Object.assign({ links: [
809
+ 'https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-golang#go-modules-and-snyk-cli',
810
+ 'https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-golang#go-modules-and-git',
811
+ ] }, additionalData), cause);
812
+ this.name = this.constructor.name;
813
+ }
814
+ }
815
+ exports.GoModFileMissingError = GoModFileMissingError;
816
+ /**
817
+ * @class
818
+ * @name SsoReAuthRequiredError
819
+ * @description Your code is cloned on an isolated environment using Git as it is required by Snyk to analyze its dependencies.
820
+ *
821
+ * Your Organization has enabled or enforced SAML SSO after you authorized Snyk to access your code, and a re-authentication is therefore required.
822
+ *
823
+ * The error you're seeing is usually reproducible by attempting to do a `git clone` of your repository with incorrectly configured credentials.
824
+ * Verify your authentication configuration with your Git cloud provider and try again.
825
+ *
826
+ * See more:
827
+ * - [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](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)
828
+ * @summary OAuth re-authorization required
829
+ * @category OpenSourceEcosystems
830
+ * @param {string} details the specific details that causes this error
831
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
832
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
833
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
834
+ */
835
+ class SsoReAuthRequiredError extends problem_error_1.ProblemError {
836
+ constructor(details, additionalData, cause, instance) {
837
+ super({
838
+ title: 'OAuth re-authorization required',
839
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-go-0003',
840
+ status: 422,
841
+ errorCode: 'SNYK-OS-GO-0003',
842
+ level: 'error',
843
+ instance,
844
+ }, details, Object.assign({ links: [
845
+ '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',
846
+ ] }, additionalData), cause);
847
+ this.name = this.constructor.name;
848
+ }
849
+ }
850
+ exports.SsoReAuthRequiredError = SsoReAuthRequiredError;
851
+ /**
852
+ * @class
853
+ * @name IncompleteProjectError
854
+ * @description Generating the dependency graph requires Snyk to run go list `go list -deps -json` inside the Project. If the operation fails, creating a full dependency graph cannot continue.
855
+ *
856
+ * This error usually means that you need some cleanup, such as `go mod tidy`) or your Project deployment process contains a code generation step such as `protobuf` or something similar that is not currently supported by Snyk.
857
+ *
858
+ * To verify if this is the case, clone your Project in a clean environment, run go list `go list -deps -json` and verify whether the operation fails.
859
+ *
860
+ * If Snyk cannot process your code successfully, insert the Snyk CLI as part of your deployment pipeline.
861
+ *
862
+ * See more:
863
+ * - [https://docs.snyk.io/snyk-cli](https://docs.snyk.io/snyk-cli)
864
+ * - [https://github.com/snyk/snyk-go-plugin](https://github.com/snyk/snyk-go-plugin)
865
+ * - [https://github.com/golang/go/blob/master/src/cmd/go/internal/list/list.go](https://github.com/golang/go/blob/master/src/cmd/go/internal/list/list.go)
866
+ * @summary Your project repository is missing required files
867
+ * @category OpenSourceEcosystems
868
+ * @param {string} details the specific details that causes this error
869
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
870
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
871
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
872
+ */
873
+ class IncompleteProjectError extends problem_error_1.ProblemError {
874
+ constructor(details, additionalData, cause, instance) {
875
+ super({
876
+ title: 'Your project repository is missing required files',
877
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-go-0004',
878
+ status: 422,
879
+ errorCode: 'SNYK-OS-GO-0004',
880
+ level: 'error',
881
+ instance,
882
+ }, details, Object.assign({ links: [
883
+ 'https://docs.snyk.io/snyk-cli',
884
+ 'https://github.com/snyk/snyk-go-plugin',
885
+ 'https://github.com/golang/go/blob/master/src/cmd/go/internal/list/list.go',
886
+ ] }, additionalData), cause);
887
+ this.name = this.constructor.name;
888
+ }
889
+ }
890
+ exports.IncompleteProjectError = IncompleteProjectError;
891
+ /**
892
+ * @class
893
+ * @name MissingRequirementFromPomError
894
+ * @description The required property is missing from the pom object.
895
+ * @summary Missing property
896
+ * @category OpenSourceEcosystems
897
+ * @param {string} details the specific details that causes this error
898
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
899
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
900
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
901
+ */
902
+ class MissingRequirementFromPomError extends problem_error_1.ProblemError {
903
+ constructor(details, additionalData, cause, instance) {
904
+ super({
905
+ title: 'Missing property',
906
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-maven-0001',
907
+ status: 422,
908
+ errorCode: 'SNYK-OS-MAVEN-0001',
909
+ level: 'error',
910
+ instance,
911
+ }, details, Object.assign({ links: [] }, additionalData), cause);
912
+ this.name = this.constructor.name;
913
+ }
914
+ }
915
+ exports.MissingRequirementFromPomError = MissingRequirementFromPomError;
916
+ /**
917
+ * @class
918
+ * @name UnableToResolveValueForPropertyError
919
+ * @description The targeted property could not be resolved with a valid value.
920
+ * @summary Unable to resolve value for property
921
+ * @category OpenSourceEcosystems
922
+ * @param {string} details the specific details that causes this error
923
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
924
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
925
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
926
+ */
927
+ class UnableToResolveValueForPropertyError extends problem_error_1.ProblemError {
928
+ constructor(details, additionalData, cause, instance) {
929
+ super({
930
+ title: 'Unable to resolve value for property',
931
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-maven-0002',
932
+ status: 422,
933
+ errorCode: 'SNYK-OS-MAVEN-0002',
934
+ level: 'error',
935
+ instance,
936
+ }, details, Object.assign({ links: [] }, additionalData), cause);
937
+ this.name = this.constructor.name;
938
+ }
939
+ }
940
+ exports.UnableToResolveValueForPropertyError = UnableToResolveValueForPropertyError;
941
+ /**
942
+ * @class
943
+ * @name UnableToResolveVersionForPropertyError
944
+ * @description The targeted property could not be resolved with a valid version.
945
+ * @summary Unable to resolve version for property
946
+ * @category OpenSourceEcosystems
947
+ * @param {string} details the specific details that causes this error
948
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
949
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
950
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
951
+ */
952
+ class UnableToResolveVersionForPropertyError extends problem_error_1.ProblemError {
953
+ constructor(details, additionalData, cause, instance) {
954
+ super({
955
+ title: 'Unable to resolve version for property',
956
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-maven-0003',
957
+ status: 422,
958
+ errorCode: 'SNYK-OS-MAVEN-0003',
959
+ level: 'error',
960
+ instance,
961
+ }, details, Object.assign({ links: [] }, additionalData), cause);
962
+ this.name = this.constructor.name;
963
+ }
964
+ }
965
+ exports.UnableToResolveVersionForPropertyError = UnableToResolveVersionForPropertyError;
966
+ /**
967
+ * @class
968
+ * @name CyclicPropertyDetectedInPomFileError
969
+ * @description There is circular dependency among properties in the Maven project's configuration file (POM), preventing proper resolution and causing an error.
970
+ * @summary Cyclic property detected in POM file
971
+ * @category OpenSourceEcosystems
972
+ * @param {string} details the specific details that causes this error
973
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
974
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
975
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
976
+ */
977
+ class CyclicPropertyDetectedInPomFileError extends problem_error_1.ProblemError {
978
+ constructor(details, additionalData, cause, instance) {
979
+ super({
980
+ title: 'Cyclic property detected in POM file',
981
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-maven-0004',
982
+ status: 422,
983
+ errorCode: 'SNYK-OS-MAVEN-0004',
984
+ level: 'error',
985
+ instance,
986
+ }, details, Object.assign({ links: [] }, additionalData), cause);
987
+ this.name = this.constructor.name;
988
+ }
989
+ }
990
+ exports.CyclicPropertyDetectedInPomFileError = CyclicPropertyDetectedInPomFileError;
991
+ /**
992
+ * @class
993
+ * @name UnableToParseXMLError
994
+ * @description There is an error parsing the XML file. This could be referring to either pom.xml or maven-metadata.xml.
995
+ * @summary Error parsing the XML file
996
+ * @category OpenSourceEcosystems
997
+ * @param {string} details the specific details that causes this error
998
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
999
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
1000
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
1001
+ */
1002
+ class UnableToParseXMLError extends problem_error_1.ProblemError {
1003
+ constructor(details, additionalData, cause, instance) {
1004
+ super({
1005
+ title: 'Error parsing the XML file',
1006
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-maven-0005',
1007
+ status: 500,
1008
+ errorCode: 'SNYK-OS-MAVEN-0005',
1009
+ level: 'error',
1010
+ instance,
1011
+ }, details, Object.assign({ links: [] }, additionalData), cause);
1012
+ this.name = this.constructor.name;
1013
+ }
1014
+ }
1015
+ exports.UnableToParseXMLError = UnableToParseXMLError;
1016
+ /**
1017
+ * @class
1018
+ * @name InvalidCoordinatesError
1019
+ * @description The coordinates provided for a project were invalid.
1020
+ * @summary Invalid coordinates provided
1021
+ * @category OpenSourceEcosystems
1022
+ * @param {string} details the specific details that causes this error
1023
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
1024
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
1025
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
1026
+ */
1027
+ class InvalidCoordinatesError extends problem_error_1.ProblemError {
1028
+ constructor(details, additionalData, cause, instance) {
1029
+ super({
1030
+ title: 'Invalid coordinates provided',
1031
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-maven-0006',
1032
+ status: 422,
1033
+ errorCode: 'SNYK-OS-MAVEN-0006',
1034
+ level: 'error',
1035
+ instance,
1036
+ }, details, Object.assign({ links: [] }, additionalData), cause);
1037
+ this.name = this.constructor.name;
1038
+ }
1039
+ }
1040
+ exports.InvalidCoordinatesError = InvalidCoordinatesError;
1041
+ /**
1042
+ * @class
1043
+ * @name SkippedGroupError
1044
+ * @description Skipping a specific groupId starting due to remapped coordinates.
1045
+ * @summary Skipping group
1046
+ * @category OpenSourceEcosystems
1047
+ * @param {string} details the specific details that causes this error
1048
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
1049
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
1050
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
1051
+ */
1052
+ class SkippedGroupError extends problem_error_1.ProblemError {
1053
+ constructor(details, additionalData, cause, instance) {
1054
+ super({
1055
+ title: 'Skipping group',
1056
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-maven-0007',
1057
+ status: 422,
1058
+ errorCode: 'SNYK-OS-MAVEN-0007',
1059
+ level: 'error',
1060
+ instance,
1061
+ }, details, Object.assign({ links: [] }, additionalData), cause);
1062
+ this.name = this.constructor.name;
1063
+ }
1064
+ }
1065
+ exports.SkippedGroupError = SkippedGroupError;
1066
+ /**
1067
+ * @class
1068
+ * @name PomFileNotFoundError
1069
+ * @description The pom file was not found in Maven repository.
1070
+ * @summary Pom file not found
1071
+ * @category OpenSourceEcosystems
1072
+ * @param {string} details the specific details that causes this error
1073
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
1074
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
1075
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
1076
+ */
1077
+ class PomFileNotFoundError extends problem_error_1.ProblemError {
1078
+ constructor(details, additionalData, cause, instance) {
1079
+ super({
1080
+ title: 'Pom file not found',
1081
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-maven-0008',
1082
+ status: 422,
1083
+ errorCode: 'SNYK-OS-MAVEN-0008',
1084
+ level: 'error',
1085
+ instance,
1086
+ }, details, Object.assign({ links: [] }, additionalData), cause);
1087
+ this.name = this.constructor.name;
1088
+ }
1089
+ }
1090
+ exports.PomFileNotFoundError = PomFileNotFoundError;
1091
+ /**
1092
+ * @class
1093
+ * @name MissingProjectFromPomError
1094
+ * @description A project element is missing from POM.
1095
+ * @summary Missing project from POM
1096
+ * @category OpenSourceEcosystems
1097
+ * @param {string} details the specific details that causes this error
1098
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
1099
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
1100
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
1101
+ */
1102
+ class MissingProjectFromPomError extends problem_error_1.ProblemError {
1103
+ constructor(details, additionalData, cause, instance) {
1104
+ super({
1105
+ title: 'Missing project from POM',
1106
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-maven-0009',
1107
+ status: 422,
1108
+ errorCode: 'SNYK-OS-MAVEN-0009',
1109
+ level: 'error',
1110
+ instance,
1111
+ }, details, Object.assign({ links: [] }, additionalData), cause);
1112
+ this.name = this.constructor.name;
1113
+ }
1114
+ }
1115
+ exports.MissingProjectFromPomError = MissingProjectFromPomError;
1116
+ /**
1117
+ * @class
1118
+ * @name CannotResolveTargetPomFromXmlError
1119
+ * @description Cannot resolve the targeted POM from the input XML.
1120
+ * @summary Cannot resolve the target POM from the input XML
1121
+ * @category OpenSourceEcosystems
1122
+ * @param {string} details the specific details that causes this error
1123
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
1124
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
1125
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
1126
+ */
1127
+ class CannotResolveTargetPomFromXmlError extends problem_error_1.ProblemError {
1128
+ constructor(details, additionalData, cause, instance) {
1129
+ super({
1130
+ title: 'Cannot resolve the target POM from the input XML',
1131
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-maven-0010',
1132
+ status: 422,
1133
+ errorCode: 'SNYK-OS-MAVEN-0010',
1134
+ level: 'error',
1135
+ instance,
1136
+ }, details, Object.assign({ links: [] }, additionalData), cause);
1137
+ this.name = this.constructor.name;
1138
+ }
1139
+ }
1140
+ exports.CannotResolveTargetPomFromXmlError = CannotResolveTargetPomFromXmlError;
1141
+ /**
1142
+ * @class
1143
+ * @name CannotResolveTargetPomFromRepoError
1144
+ * @description Cannot resolve the targeted POM from the repository.
1145
+ * @summary Cannot resolve the target POM from the repository
1146
+ * @category OpenSourceEcosystems
1147
+ * @param {string} details the specific details that causes this error
1148
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
1149
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
1150
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
1151
+ */
1152
+ class CannotResolveTargetPomFromRepoError extends problem_error_1.ProblemError {
1153
+ constructor(details, additionalData, cause, instance) {
1154
+ super({
1155
+ title: 'Cannot resolve the target POM from the repository',
1156
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-maven-0011',
1157
+ status: 404,
1158
+ errorCode: 'SNYK-OS-MAVEN-0011',
1159
+ level: 'error',
1160
+ instance,
1161
+ }, details, Object.assign({ links: [] }, additionalData), cause);
1162
+ this.name = this.constructor.name;
1163
+ }
1164
+ }
1165
+ exports.CannotResolveTargetPomFromRepoError = CannotResolveTargetPomFromRepoError;
1166
+ /**
1167
+ * @class
1168
+ * @name CannotGetBuildFileFromRepoError
1169
+ * @description Cannot get the build file repository.
1170
+ * @summary Cannot get the build file repository
1171
+ * @category OpenSourceEcosystems
1172
+ * @param {string} details the specific details that causes this error
1173
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
1174
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
1175
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
1176
+ */
1177
+ class CannotGetBuildFileFromRepoError extends problem_error_1.ProblemError {
1178
+ constructor(details, additionalData, cause, instance) {
1179
+ super({
1180
+ title: 'Cannot get the build file repository',
1181
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-maven-0012',
1182
+ status: 404,
1183
+ errorCode: 'SNYK-OS-MAVEN-0012',
1184
+ level: 'error',
1185
+ instance,
1186
+ }, details, Object.assign({ links: [] }, additionalData), cause);
1187
+ this.name = this.constructor.name;
1188
+ }
1189
+ }
1190
+ exports.CannotGetBuildFileFromRepoError = CannotGetBuildFileFromRepoError;
1191
+ /**
1192
+ * @class
1193
+ * @name CannotCreateGitHostError
1194
+ * @description Cannot create source URL.
1195
+ * @summary Unable to create hosted git info
1196
+ * @category OpenSourceEcosystems
1197
+ * @param {string} details the specific details that causes this error
1198
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
1199
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
1200
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
1201
+ */
1202
+ class CannotCreateGitHostError extends problem_error_1.ProblemError {
1203
+ constructor(details, additionalData, cause, instance) {
1204
+ super({
1205
+ title: 'Unable to create hosted git info',
1206
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-maven-0013',
1207
+ status: 500,
1208
+ errorCode: 'SNYK-OS-MAVEN-0013',
1209
+ level: 'error',
1210
+ instance,
1211
+ }, details, Object.assign({ links: [] }, additionalData), cause);
1212
+ this.name = this.constructor.name;
1213
+ }
1214
+ }
1215
+ exports.CannotCreateGitHostError = CannotCreateGitHostError;
1216
+ /**
1217
+ * @class
1218
+ * @name NoRepoFoundForTheNPMPackageError
1219
+ * @description No repository found for the NPM package.
1220
+ * @summary No repository found for A NPM package
1221
+ * @category OpenSourceEcosystems
1222
+ * @param {string} details the specific details that causes this error
1223
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
1224
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
1225
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
1226
+ */
1227
+ class NoRepoFoundForTheNPMPackageError extends problem_error_1.ProblemError {
1228
+ constructor(details, additionalData, cause, instance) {
1229
+ super({
1230
+ title: 'No repository found for A NPM package',
1231
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-nodejs-0001',
1232
+ status: 422,
1233
+ errorCode: 'SNYK-OS-NODEJS-0001',
1234
+ level: 'error',
1235
+ instance,
1236
+ }, details, Object.assign({ links: [] }, additionalData), cause);
1237
+ this.name = this.constructor.name;
1238
+ }
1239
+ }
1240
+ exports.NoRepoFoundForTheNPMPackageError = NoRepoFoundForTheNPMPackageError;
1241
+ /**
1242
+ * @class
1243
+ * @name CouldNotParseNPMRegistryURLError
1244
+ * @description Could not parse NPM registry URL.
1245
+ * @summary Could not parse NPM registry URL
1246
+ * @category OpenSourceEcosystems
1247
+ * @param {string} details the specific details that causes this error
1248
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
1249
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
1250
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
1251
+ */
1252
+ class CouldNotParseNPMRegistryURLError extends problem_error_1.ProblemError {
1253
+ constructor(details, additionalData, cause, instance) {
1254
+ super({
1255
+ title: 'Could not parse NPM registry URL',
1256
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-nodejs-0002',
1257
+ status: 422,
1258
+ errorCode: 'SNYK-OS-NODEJS-0002',
1259
+ level: 'error',
1260
+ instance,
1261
+ }, details, Object.assign({ links: [] }, additionalData), cause);
1262
+ this.name = this.constructor.name;
1263
+ }
1264
+ }
1265
+ exports.CouldNotParseNPMRegistryURLError = CouldNotParseNPMRegistryURLError;
1266
+ /**
1267
+ * @class
1268
+ * @name CouldNotFindBrokerURLError
1269
+ * @description Could not find a broker resolved URL.
1270
+ * @summary Could not find a broker resolved URL
1271
+ * @category OpenSourceEcosystems
1272
+ * @param {string} details the specific details that causes this error
1273
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
1274
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
1275
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
1276
+ */
1277
+ class CouldNotFindBrokerURLError extends problem_error_1.ProblemError {
1278
+ constructor(details, additionalData, cause, instance) {
1279
+ super({
1280
+ title: 'Could not find a broker resolved URL',
1281
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-nodejs-0003',
1282
+ status: 422,
1283
+ errorCode: 'SNYK-OS-NODEJS-0003',
1284
+ level: 'error',
1285
+ instance,
1286
+ }, details, Object.assign({ links: [] }, additionalData), cause);
1287
+ this.name = this.constructor.name;
1288
+ }
1289
+ }
1290
+ exports.CouldNotFindBrokerURLError = CouldNotFindBrokerURLError;
1291
+ /**
1292
+ * @class
1293
+ * @name UnableToReplaceBrokerURLError
1294
+ * @description Unable to replace all broker urls in lock file.
1295
+ * @summary Unable to replace broker URL
1296
+ * @category OpenSourceEcosystems
1297
+ * @param {string} details the specific details that causes this error
1298
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
1299
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
1300
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
1301
+ */
1302
+ class UnableToReplaceBrokerURLError extends problem_error_1.ProblemError {
1303
+ constructor(details, additionalData, cause, instance) {
1304
+ super({
1305
+ title: 'Unable to replace broker URL',
1306
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-nodejs-0004',
1307
+ status: 422,
1308
+ errorCode: 'SNYK-OS-NODEJS-0004',
1309
+ level: 'error',
1310
+ instance,
1311
+ }, details, Object.assign({ links: [] }, additionalData), cause);
1312
+ this.name = this.constructor.name;
1313
+ }
1314
+ }
1315
+ exports.UnableToReplaceBrokerURLError = UnableToReplaceBrokerURLError;
1316
+ /**
1317
+ * @class
1318
+ * @name BadNPMVersionError
1319
+ * @description The NPM version is not supported.
1320
+ * @summary Bad NPM version
1321
+ * @category OpenSourceEcosystems
1322
+ * @param {string} details the specific details that causes this error
1323
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
1324
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
1325
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
1326
+ */
1327
+ class BadNPMVersionError extends problem_error_1.ProblemError {
1328
+ constructor(details, additionalData, cause, instance) {
1329
+ super({
1330
+ title: 'Bad NPM version',
1331
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-nodejs-0005',
1332
+ status: 422,
1333
+ errorCode: 'SNYK-OS-NODEJS-0005',
1334
+ level: 'error',
1335
+ instance,
1336
+ }, details, Object.assign({ links: [] }, additionalData), cause);
1337
+ this.name = this.constructor.name;
1338
+ }
1339
+ }
1340
+ exports.BadNPMVersionError = BadNPMVersionError;
1341
+ /**
1342
+ * @class
1343
+ * @name UnsupportedRequirementsFileError
1344
+ * @description The provided requirements file is not supported by Snyk for Python.
1345
+ *
1346
+ * See more:
1347
+ * - [https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-python#git-services-for-pip-projects](https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-python#git-services-for-pip-projects)
1348
+ * @summary Unsupported manifest file type for remediation
1349
+ * @category OpenSourceEcosystems
1350
+ * @param {string} details the specific details that causes this error
1351
+ * @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
1352
+ * @param {Error} [cause] the `Error` type that caused this error to be thrown
1353
+ * @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
1354
+ */
1355
+ class UnsupportedRequirementsFileError extends problem_error_1.ProblemError {
1356
+ constructor(details, additionalData, cause, instance) {
1357
+ super({
1358
+ title: 'Unsupported manifest file type for remediation',
1359
+ type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-pip-0001',
1360
+ status: 422,
1361
+ errorCode: 'SNYK-OS-PIP-0001',
1362
+ level: 'error',
1363
+ instance,
1364
+ }, details, Object.assign({ links: [
1365
+ 'https://docs.snyk.io/scan-application-code/snyk-open-source/snyk-open-source-supported-languages-and-package-managers/snyk-for-python#git-services-for-pip-projects',
1366
+ ] }, additionalData), cause);
1367
+ this.name = this.constructor.name;
1368
+ }
1369
+ }
1370
+ exports.UnsupportedRequirementsFileError = UnsupportedRequirementsFileError;
1371
+ //# sourceMappingURL=OpenSourceEcosystems-error-catalog.js.map