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