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