@snyk/error-catalog-nodejs-public 5.8.0 → 5.9.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/Code-error-catalog.d.ts +22 -2
- package/src/catalogs/Code-error-catalog.js +39 -5
- package/src/catalogs/Code-error-catalog.js.map +1 -1
- package/src/catalogs/Fix-error-catalog.d.ts +11 -11
- package/src/catalogs/Fix-error-catalog.js +22 -22
- package/src/catalogs/Fix-error-catalog.js.map +1 -1
- package/src/catalogs/IsolatedBuilds-error-catalog.d.ts +3 -3
- package/src/catalogs/IsolatedBuilds-error-catalog.js +6 -6
- package/src/catalogs/IsolatedBuilds-error-catalog.js.map +1 -1
- package/src/catalogs/OpenAPI-error-catalog.d.ts +8 -8
- package/src/catalogs/OpenAPI-error-catalog.js +16 -16
- package/src/catalogs/OpenAPI-error-catalog.js.map +1 -1
- package/src/catalogs/OpenSourceEcosystems-error-catalog.d.ts +54 -54
- package/src/catalogs/OpenSourceEcosystems-error-catalog.js +108 -108
- package/src/catalogs/OpenSourceEcosystems-error-catalog.js.map +1 -1
- package/src/catalogs/OpenSourceProjectIssues-error-catalog.d.ts +5 -5
- package/src/catalogs/OpenSourceProjectIssues-error-catalog.js +10 -10
- package/src/catalogs/OpenSourceProjectIssues-error-catalog.js.map +1 -1
- package/src/catalogs/OpenSourceProjectSnapshots-error-catalog.d.ts +5 -5
- package/src/catalogs/OpenSourceProjectSnapshots-error-catalog.js +10 -10
- package/src/catalogs/OpenSourceProjectSnapshots-error-catalog.js.map +1 -1
- package/src/catalogs/OpenSourceUnmanaged-error-catalog.d.ts +2 -2
- package/src/catalogs/OpenSourceUnmanaged-error-catalog.js +4 -4
- package/src/catalogs/OpenSourceUnmanaged-error-catalog.js.map +1 -1
- package/src/catalogs/PRChecks-error-catalog.d.ts +11 -11
- package/src/catalogs/PRChecks-error-catalog.js +22 -22
- package/src/catalogs/PRChecks-error-catalog.js.map +1 -1
- package/src/catalogs/PurlVulnerabilityFetching-error-catalog.d.ts +19 -19
- package/src/catalogs/PurlVulnerabilityFetching-error-catalog.js +38 -38
- package/src/catalogs/PurlVulnerabilityFetching-error-catalog.js.map +1 -1
- package/src/catalogs/SbomExport-error-catalog.d.ts +9 -9
- package/src/catalogs/SbomExport-error-catalog.js +18 -18
- package/src/catalogs/SbomExport-error-catalog.js.map +1 -1
- package/src/catalogs/Snyk-error-catalog.d.ts +6 -6
- package/src/catalogs/Snyk-error-catalog.js +12 -12
- package/src/catalogs/Snyk-error-catalog.js.map +1 -1
- package/src/catalogs/error-codes.d.ts +1 -0
- package/src/catalogs/error-codes.js +1 -0
- package/src/catalogs/error-codes.js.map +1 -1
package/package.json
CHANGED
|
@@ -34,7 +34,7 @@ import { ProblemError } from '../problem-error';
|
|
|
34
34
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
35
35
|
*/
|
|
36
36
|
export declare class AnalysisFileCountLimitExceededError extends ProblemError {
|
|
37
|
-
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
|
|
37
|
+
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string, logs?: string[]);
|
|
38
38
|
}
|
|
39
39
|
/**
|
|
40
40
|
* @class
|
|
@@ -55,5 +55,25 @@ export declare class AnalysisFileCountLimitExceededError extends ProblemError {
|
|
|
55
55
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
56
56
|
*/
|
|
57
57
|
export declare class AnalysisResultSizeLimitExceededError extends ProblemError {
|
|
58
|
-
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
|
|
58
|
+
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string, logs?: string[]);
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* @class
|
|
62
|
+
* @name AnalysisTargetSizeLimitExceededError
|
|
63
|
+
* @description This error occurs when the analysis target byte size exceeds current system limits.
|
|
64
|
+
*
|
|
65
|
+
* To reduce the overall result size, use a `.snyk` file to ignore specified directories or files. Alternatively, use the Snyk CLI to analyze individual subdirectories separately.
|
|
66
|
+
*
|
|
67
|
+
* See more:
|
|
68
|
+
* - [https://docs.snyk.io/snyk-cli/using-snyk-code-from-the-cli](https://docs.snyk.io/snyk-cli/using-snyk-code-from-the-cli)
|
|
69
|
+
* @summary Analysis target size limit exceeded
|
|
70
|
+
* @category Code
|
|
71
|
+
* @param {string} details the specific details that causes this error
|
|
72
|
+
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
73
|
+
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
74
|
+
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
75
|
+
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
76
|
+
*/
|
|
77
|
+
export declare class AnalysisTargetSizeLimitExceededError extends ProblemError {
|
|
78
|
+
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string, logs?: string[]);
|
|
59
79
|
}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
"use strict";
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.AnalysisResultSizeLimitExceededError = exports.AnalysisFileCountLimitExceededError = void 0;
|
|
18
|
+
exports.AnalysisTargetSizeLimitExceededError = exports.AnalysisResultSizeLimitExceededError = exports.AnalysisFileCountLimitExceededError = void 0;
|
|
19
19
|
const types_1 = require("../types");
|
|
20
20
|
const problem_error_1 = require("../problem-error");
|
|
21
21
|
/**
|
|
@@ -38,7 +38,7 @@ const problem_error_1 = require("../problem-error");
|
|
|
38
38
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
39
39
|
*/
|
|
40
40
|
class AnalysisFileCountLimitExceededError extends problem_error_1.ProblemError {
|
|
41
|
-
constructor(details, additionalData, cause, instance) {
|
|
41
|
+
constructor(details, additionalData, cause, instance, logs) {
|
|
42
42
|
super({
|
|
43
43
|
title: 'Analysis file count limit exceeded',
|
|
44
44
|
type: 'https://docs.snyk.io/more-info/error-catalog#snyk-code-0001',
|
|
@@ -51,7 +51,7 @@ class AnalysisFileCountLimitExceededError extends problem_error_1.ProblemError {
|
|
|
51
51
|
'https://docs.snyk.io/scan-applications/supported-languages-and-frameworks/supported-languages-frameworks-and-feature-availability-overview#code-analysis-snyk-code',
|
|
52
52
|
'https://docs.snyk.io/scan-applications/start-scanning-using-the-cli-web-ui-or-api/snyk-code-and-your-repositories/excluding-directories-and-files-from-the-import-process',
|
|
53
53
|
'https://docs.snyk.io/snyk-cli/using-snyk-code-from-the-cli',
|
|
54
|
-
] }, additionalData), cause);
|
|
54
|
+
] }, additionalData), cause, logs);
|
|
55
55
|
this.name = this.constructor.name;
|
|
56
56
|
}
|
|
57
57
|
}
|
|
@@ -75,7 +75,7 @@ exports.AnalysisFileCountLimitExceededError = AnalysisFileCountLimitExceededErro
|
|
|
75
75
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
76
76
|
*/
|
|
77
77
|
class AnalysisResultSizeLimitExceededError extends problem_error_1.ProblemError {
|
|
78
|
-
constructor(details, additionalData, cause, instance) {
|
|
78
|
+
constructor(details, additionalData, cause, instance, logs) {
|
|
79
79
|
super({
|
|
80
80
|
title: 'Analysis result size limit exceeded',
|
|
81
81
|
type: 'https://docs.snyk.io/more-info/error-catalog#snyk-code-0002',
|
|
@@ -87,9 +87,43 @@ class AnalysisResultSizeLimitExceededError extends problem_error_1.ProblemError
|
|
|
87
87
|
}, details, Object.assign({ links: [
|
|
88
88
|
'https://docs.snyk.io/scan-applications/start-scanning-using-the-cli-web-ui-or-api/snyk-code-and-your-repositories/excluding-directories-and-files-from-the-import-process',
|
|
89
89
|
'https://docs.snyk.io/snyk-cli/using-snyk-code-from-the-cli',
|
|
90
|
-
] }, additionalData), cause);
|
|
90
|
+
] }, additionalData), cause, logs);
|
|
91
91
|
this.name = this.constructor.name;
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
exports.AnalysisResultSizeLimitExceededError = AnalysisResultSizeLimitExceededError;
|
|
95
|
+
/**
|
|
96
|
+
* @class
|
|
97
|
+
* @name AnalysisTargetSizeLimitExceededError
|
|
98
|
+
* @description This error occurs when the analysis target byte size exceeds current system limits.
|
|
99
|
+
*
|
|
100
|
+
* To reduce the overall result size, use a `.snyk` file to ignore specified directories or files. Alternatively, use the Snyk CLI to analyze individual subdirectories separately.
|
|
101
|
+
*
|
|
102
|
+
* See more:
|
|
103
|
+
* - [https://docs.snyk.io/snyk-cli/using-snyk-code-from-the-cli](https://docs.snyk.io/snyk-cli/using-snyk-code-from-the-cli)
|
|
104
|
+
* @summary Analysis target size limit exceeded
|
|
105
|
+
* @category Code
|
|
106
|
+
* @param {string} details the specific details that causes this error
|
|
107
|
+
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
108
|
+
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
109
|
+
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
110
|
+
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
111
|
+
*/
|
|
112
|
+
class AnalysisTargetSizeLimitExceededError extends problem_error_1.ProblemError {
|
|
113
|
+
constructor(details, additionalData, cause, instance, logs) {
|
|
114
|
+
super({
|
|
115
|
+
title: 'Analysis target size limit exceeded',
|
|
116
|
+
type: 'https://docs.snyk.io/more-info/error-catalog#snyk-code-0003',
|
|
117
|
+
status: 422,
|
|
118
|
+
errorCode: 'SNYK-CODE-0003',
|
|
119
|
+
level: 'error',
|
|
120
|
+
classification: types_1.Classification.UNSUPPORTED,
|
|
121
|
+
instance,
|
|
122
|
+
}, details, Object.assign({ links: [
|
|
123
|
+
'https://docs.snyk.io/snyk-cli/using-snyk-code-from-the-cli',
|
|
124
|
+
] }, additionalData), cause, logs);
|
|
125
|
+
this.name = this.constructor.name;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
exports.AnalysisTargetSizeLimitExceededError = AnalysisTargetSizeLimitExceededError;
|
|
95
129
|
//# sourceMappingURL=Code-error-catalog.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Code-error-catalog.js","sourceRoot":"","sources":["../../../../../packages/error-catalog-nodejs-public/src/catalogs/Code-error-catalog.ts"],"names":[],"mappings":";;;AAAA,oCAA0C;AAC1C,oDAAgD;AAEhD;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAa,mCAAoC,SAAQ,4BAAY;IACnE,YACI,OAAe,EACf,cAAoC,EACpC,KAAa,EACb,QAAiB;
|
|
1
|
+
{"version":3,"file":"Code-error-catalog.js","sourceRoot":"","sources":["../../../../../packages/error-catalog-nodejs-public/src/catalogs/Code-error-catalog.ts"],"names":[],"mappings":";;;AAAA,oCAA0C;AAC1C,oDAAgD;AAEhD;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAa,mCAAoC,SAAQ,4BAAY;IACnE,YACI,OAAe,EACf,cAAoC,EACpC,KAAa,EACb,QAAiB,EACjB,IAAe;QAEjB,KAAK,CACH;YACE,KAAK,EAAE,oCAAoC;YAC3C,IAAI,EAAE,6DAA6D;YACnE,MAAM,EAAE,GAAG;YACX,SAAS,EAAE,gBAAgB;YAC3B,KAAK,EAAE,OAAO;YACd,cAAc,EAAE,sBAAc,CAAC,WAAW;YAC1C,QAAQ;SACT,EACD,OAAO,kBAEL,KAAK,EAAE;gBACP,oKAAoK;gBACpK,2KAA2K;gBAC3K,4DAA4D;aAC3D,IACE,cAAc,GAEnB,KAAK,EACL,IAAI,CACL,CAAC;QACF,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;IACpC,CAAC;CACF;AAhCD,kFAgCC;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAa,oCAAqC,SAAQ,4BAAY;IACpE,YACI,OAAe,EACf,cAAoC,EACpC,KAAa,EACb,QAAiB,EACjB,IAAe;QAEjB,KAAK,CACH;YACE,KAAK,EAAE,qCAAqC;YAC5C,IAAI,EAAE,6DAA6D;YACnE,MAAM,EAAE,GAAG;YACX,SAAS,EAAE,gBAAgB;YAC3B,KAAK,EAAE,OAAO;YACd,cAAc,EAAE,sBAAc,CAAC,WAAW;YAC1C,QAAQ;SACT,EACD,OAAO,kBAEL,KAAK,EAAE;gBACP,2KAA2K;gBAC3K,4DAA4D;aAC3D,IACE,cAAc,GAEnB,KAAK,EACL,IAAI,CACL,CAAC;QACF,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;IACpC,CAAC;CACF;AA/BD,oFA+BC;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,MAAa,oCAAqC,SAAQ,4BAAY;IACpE,YACI,OAAe,EACf,cAAoC,EACpC,KAAa,EACb,QAAiB,EACjB,IAAe;QAEjB,KAAK,CACH;YACE,KAAK,EAAE,qCAAqC;YAC5C,IAAI,EAAE,6DAA6D;YACnE,MAAM,EAAE,GAAG;YACX,SAAS,EAAE,gBAAgB;YAC3B,KAAK,EAAE,OAAO;YACd,cAAc,EAAE,sBAAc,CAAC,WAAW;YAC1C,QAAQ;SACT,EACD,OAAO,kBAEL,KAAK,EAAE;gBACP,4DAA4D;aAC3D,IACE,cAAc,GAEnB,KAAK,EACL,IAAI,CACL,CAAC;QACF,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;IACpC,CAAC;CACF;AA9BD,oFA8BC"}
|
|
@@ -30,7 +30,7 @@ import { ProblemError } from '../problem-error';
|
|
|
30
30
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
31
31
|
*/
|
|
32
32
|
export declare class FailedToGetPullRequestAttributesError extends ProblemError {
|
|
33
|
-
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
|
|
33
|
+
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string, logs?: string[]);
|
|
34
34
|
}
|
|
35
35
|
/**
|
|
36
36
|
* @class
|
|
@@ -48,7 +48,7 @@ export declare class FailedToGetPullRequestAttributesError extends ProblemError
|
|
|
48
48
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
49
49
|
*/
|
|
50
50
|
export declare class PullRequestTemplateNotFoundError extends ProblemError {
|
|
51
|
-
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
|
|
51
|
+
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string, logs?: string[]);
|
|
52
52
|
}
|
|
53
53
|
/**
|
|
54
54
|
* @class
|
|
@@ -66,7 +66,7 @@ export declare class PullRequestTemplateNotFoundError extends ProblemError {
|
|
|
66
66
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
67
67
|
*/
|
|
68
68
|
export declare class FailedToCompilePrTemplateError extends ProblemError {
|
|
69
|
-
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
|
|
69
|
+
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string, logs?: string[]);
|
|
70
70
|
}
|
|
71
71
|
/**
|
|
72
72
|
* @class
|
|
@@ -84,7 +84,7 @@ export declare class FailedToCompilePrTemplateError extends ProblemError {
|
|
|
84
84
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
85
85
|
*/
|
|
86
86
|
export declare class FailedToParsePullRequestAttributesError extends ProblemError {
|
|
87
|
-
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
|
|
87
|
+
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string, logs?: string[]);
|
|
88
88
|
}
|
|
89
89
|
/**
|
|
90
90
|
* @class
|
|
@@ -102,7 +102,7 @@ export declare class FailedToParsePullRequestAttributesError extends ProblemErro
|
|
|
102
102
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
103
103
|
*/
|
|
104
104
|
export declare class FailedToLoadCompiledYamlError extends ProblemError {
|
|
105
|
-
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
|
|
105
|
+
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string, logs?: string[]);
|
|
106
106
|
}
|
|
107
107
|
/**
|
|
108
108
|
* @class
|
|
@@ -120,7 +120,7 @@ export declare class FailedToLoadCompiledYamlError extends ProblemError {
|
|
|
120
120
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
121
121
|
*/
|
|
122
122
|
export declare class FailedToGenerateHashError extends ProblemError {
|
|
123
|
-
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
|
|
123
|
+
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string, logs?: string[]);
|
|
124
124
|
}
|
|
125
125
|
/**
|
|
126
126
|
* @class
|
|
@@ -138,7 +138,7 @@ export declare class FailedToGenerateHashError extends ProblemError {
|
|
|
138
138
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
139
139
|
*/
|
|
140
140
|
export declare class FailedToCreatePRTemplateError extends ProblemError {
|
|
141
|
-
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
|
|
141
|
+
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string, logs?: string[]);
|
|
142
142
|
}
|
|
143
143
|
/**
|
|
144
144
|
* @class
|
|
@@ -156,7 +156,7 @@ export declare class FailedToCreatePRTemplateError extends ProblemError {
|
|
|
156
156
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
157
157
|
*/
|
|
158
158
|
export declare class FailedToReadPRTemplateError extends ProblemError {
|
|
159
|
-
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
|
|
159
|
+
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string, logs?: string[]);
|
|
160
160
|
}
|
|
161
161
|
/**
|
|
162
162
|
* @class
|
|
@@ -174,7 +174,7 @@ export declare class FailedToReadPRTemplateError extends ProblemError {
|
|
|
174
174
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
175
175
|
*/
|
|
176
176
|
export declare class FailedToDeletePRTemplateError extends ProblemError {
|
|
177
|
-
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
|
|
177
|
+
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string, logs?: string[]);
|
|
178
178
|
}
|
|
179
179
|
/**
|
|
180
180
|
* @class
|
|
@@ -189,7 +189,7 @@ export declare class FailedToDeletePRTemplateError extends ProblemError {
|
|
|
189
189
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
190
190
|
*/
|
|
191
191
|
export declare class PRTemplateInvalidPayloadError extends ProblemError {
|
|
192
|
-
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
|
|
192
|
+
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string, logs?: string[]);
|
|
193
193
|
}
|
|
194
194
|
/**
|
|
195
195
|
* @class
|
|
@@ -207,5 +207,5 @@ export declare class PRTemplateInvalidPayloadError extends ProblemError {
|
|
|
207
207
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
208
208
|
*/
|
|
209
209
|
export declare class FailedToLoadCompiledJSONError extends ProblemError {
|
|
210
|
-
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
|
|
210
|
+
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string, logs?: string[]);
|
|
211
211
|
}
|
|
@@ -34,7 +34,7 @@ const problem_error_1 = require("../problem-error");
|
|
|
34
34
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
35
35
|
*/
|
|
36
36
|
class FailedToGetPullRequestAttributesError extends problem_error_1.ProblemError {
|
|
37
|
-
constructor(details, additionalData, cause, instance) {
|
|
37
|
+
constructor(details, additionalData, cause, instance, logs) {
|
|
38
38
|
super({
|
|
39
39
|
title: 'Failed to get pull request attributes',
|
|
40
40
|
type: 'https://docs.snyk.io/more-info/error-catalog#snyk-pr-template-0001',
|
|
@@ -45,7 +45,7 @@ class FailedToGetPullRequestAttributesError extends problem_error_1.ProblemError
|
|
|
45
45
|
instance,
|
|
46
46
|
}, details, Object.assign({ links: [
|
|
47
47
|
'https://docs.snyk.io/scan-application-code/snyk-open-source/open-source-basics/customize-pr-templates-closed-beta',
|
|
48
|
-
] }, additionalData), cause);
|
|
48
|
+
] }, additionalData), cause, logs);
|
|
49
49
|
this.name = this.constructor.name;
|
|
50
50
|
}
|
|
51
51
|
}
|
|
@@ -66,7 +66,7 @@ exports.FailedToGetPullRequestAttributesError = FailedToGetPullRequestAttributes
|
|
|
66
66
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
67
67
|
*/
|
|
68
68
|
class PullRequestTemplateNotFoundError extends problem_error_1.ProblemError {
|
|
69
|
-
constructor(details, additionalData, cause, instance) {
|
|
69
|
+
constructor(details, additionalData, cause, instance, logs) {
|
|
70
70
|
super({
|
|
71
71
|
title: 'Not found',
|
|
72
72
|
type: 'https://docs.snyk.io/more-info/error-catalog#snyk-pr-template-0002',
|
|
@@ -77,7 +77,7 @@ class PullRequestTemplateNotFoundError extends problem_error_1.ProblemError {
|
|
|
77
77
|
instance,
|
|
78
78
|
}, details, Object.assign({ links: [
|
|
79
79
|
'https://docs.snyk.io/scan-application-code/snyk-open-source/open-source-basics/customize-pr-templates-closed-beta',
|
|
80
|
-
] }, additionalData), cause);
|
|
80
|
+
] }, additionalData), cause, logs);
|
|
81
81
|
this.name = this.constructor.name;
|
|
82
82
|
}
|
|
83
83
|
}
|
|
@@ -98,7 +98,7 @@ exports.PullRequestTemplateNotFoundError = PullRequestTemplateNotFoundError;
|
|
|
98
98
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
99
99
|
*/
|
|
100
100
|
class FailedToCompilePrTemplateError extends problem_error_1.ProblemError {
|
|
101
|
-
constructor(details, additionalData, cause, instance) {
|
|
101
|
+
constructor(details, additionalData, cause, instance, logs) {
|
|
102
102
|
super({
|
|
103
103
|
title: 'Failed to compile pull request template',
|
|
104
104
|
type: 'https://docs.snyk.io/more-info/error-catalog#snyk-pr-template-0003',
|
|
@@ -109,7 +109,7 @@ class FailedToCompilePrTemplateError extends problem_error_1.ProblemError {
|
|
|
109
109
|
instance,
|
|
110
110
|
}, details, Object.assign({ links: [
|
|
111
111
|
'https://docs.snyk.io/scan-application-code/snyk-open-source/open-source-basics/customize-pr-templates-closed-beta',
|
|
112
|
-
] }, additionalData), cause);
|
|
112
|
+
] }, additionalData), cause, logs);
|
|
113
113
|
this.name = this.constructor.name;
|
|
114
114
|
}
|
|
115
115
|
}
|
|
@@ -130,7 +130,7 @@ exports.FailedToCompilePrTemplateError = FailedToCompilePrTemplateError;
|
|
|
130
130
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
131
131
|
*/
|
|
132
132
|
class FailedToParsePullRequestAttributesError extends problem_error_1.ProblemError {
|
|
133
|
-
constructor(details, additionalData, cause, instance) {
|
|
133
|
+
constructor(details, additionalData, cause, instance, logs) {
|
|
134
134
|
super({
|
|
135
135
|
title: 'Failed to parse pull request attributes',
|
|
136
136
|
type: 'https://docs.snyk.io/more-info/error-catalog#snyk-pr-template-0004',
|
|
@@ -141,7 +141,7 @@ class FailedToParsePullRequestAttributesError extends problem_error_1.ProblemErr
|
|
|
141
141
|
instance,
|
|
142
142
|
}, details, Object.assign({ links: [
|
|
143
143
|
'https://docs.snyk.io/scan-application-code/snyk-open-source/open-source-basics/customize-pr-templates-closed-beta',
|
|
144
|
-
] }, additionalData), cause);
|
|
144
|
+
] }, additionalData), cause, logs);
|
|
145
145
|
this.name = this.constructor.name;
|
|
146
146
|
}
|
|
147
147
|
}
|
|
@@ -162,7 +162,7 @@ exports.FailedToParsePullRequestAttributesError = FailedToParsePullRequestAttrib
|
|
|
162
162
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
163
163
|
*/
|
|
164
164
|
class FailedToLoadCompiledYamlError extends problem_error_1.ProblemError {
|
|
165
|
-
constructor(details, additionalData, cause, instance) {
|
|
165
|
+
constructor(details, additionalData, cause, instance, logs) {
|
|
166
166
|
super({
|
|
167
167
|
title: 'Failed to load YAML file after substituting Snyk variables',
|
|
168
168
|
type: 'https://docs.snyk.io/more-info/error-catalog#snyk-pr-template-0005',
|
|
@@ -173,7 +173,7 @@ class FailedToLoadCompiledYamlError extends problem_error_1.ProblemError {
|
|
|
173
173
|
instance,
|
|
174
174
|
}, details, Object.assign({ links: [
|
|
175
175
|
'https://docs.snyk.io/scan-application-code/snyk-open-source/open-source-basics/customize-pr-templates-closed-beta',
|
|
176
|
-
] }, additionalData), cause);
|
|
176
|
+
] }, additionalData), cause, logs);
|
|
177
177
|
this.name = this.constructor.name;
|
|
178
178
|
}
|
|
179
179
|
}
|
|
@@ -194,7 +194,7 @@ exports.FailedToLoadCompiledYamlError = FailedToLoadCompiledYamlError;
|
|
|
194
194
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
195
195
|
*/
|
|
196
196
|
class FailedToGenerateHashError extends problem_error_1.ProblemError {
|
|
197
|
-
constructor(details, additionalData, cause, instance) {
|
|
197
|
+
constructor(details, additionalData, cause, instance, logs) {
|
|
198
198
|
super({
|
|
199
199
|
title: 'Failed to generate hash for custom PR template',
|
|
200
200
|
type: 'https://docs.snyk.io/more-info/error-catalog#snyk-pr-template-0006',
|
|
@@ -205,7 +205,7 @@ class FailedToGenerateHashError extends problem_error_1.ProblemError {
|
|
|
205
205
|
instance,
|
|
206
206
|
}, details, Object.assign({ links: [
|
|
207
207
|
'https://docs.snyk.io/scan-application-code/snyk-open-source/open-source-basics/customize-pr-templates-closed-beta',
|
|
208
|
-
] }, additionalData), cause);
|
|
208
|
+
] }, additionalData), cause, logs);
|
|
209
209
|
this.name = this.constructor.name;
|
|
210
210
|
}
|
|
211
211
|
}
|
|
@@ -226,7 +226,7 @@ exports.FailedToGenerateHashError = FailedToGenerateHashError;
|
|
|
226
226
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
227
227
|
*/
|
|
228
228
|
class FailedToCreatePRTemplateError extends problem_error_1.ProblemError {
|
|
229
|
-
constructor(details, additionalData, cause, instance) {
|
|
229
|
+
constructor(details, additionalData, cause, instance, logs) {
|
|
230
230
|
super({
|
|
231
231
|
title: 'Unable to create pull request template',
|
|
232
232
|
type: 'https://docs.snyk.io/more-info/error-catalog#snyk-pr-template-0007',
|
|
@@ -237,7 +237,7 @@ class FailedToCreatePRTemplateError extends problem_error_1.ProblemError {
|
|
|
237
237
|
instance,
|
|
238
238
|
}, details, Object.assign({ links: [
|
|
239
239
|
'https://docs.snyk.io/scan-application-code/snyk-open-source/open-source-basics/customize-pr-templates-closed-beta',
|
|
240
|
-
] }, additionalData), cause);
|
|
240
|
+
] }, additionalData), cause, logs);
|
|
241
241
|
this.name = this.constructor.name;
|
|
242
242
|
}
|
|
243
243
|
}
|
|
@@ -258,7 +258,7 @@ exports.FailedToCreatePRTemplateError = FailedToCreatePRTemplateError;
|
|
|
258
258
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
259
259
|
*/
|
|
260
260
|
class FailedToReadPRTemplateError extends problem_error_1.ProblemError {
|
|
261
|
-
constructor(details, additionalData, cause, instance) {
|
|
261
|
+
constructor(details, additionalData, cause, instance, logs) {
|
|
262
262
|
super({
|
|
263
263
|
title: 'Unable to get pull request template',
|
|
264
264
|
type: 'https://docs.snyk.io/more-info/error-catalog#snyk-pr-template-0008',
|
|
@@ -269,7 +269,7 @@ class FailedToReadPRTemplateError extends problem_error_1.ProblemError {
|
|
|
269
269
|
instance,
|
|
270
270
|
}, details, Object.assign({ links: [
|
|
271
271
|
'https://docs.snyk.io/scan-application-code/snyk-open-source/open-source-basics/customize-pr-templates-closed-beta',
|
|
272
|
-
] }, additionalData), cause);
|
|
272
|
+
] }, additionalData), cause, logs);
|
|
273
273
|
this.name = this.constructor.name;
|
|
274
274
|
}
|
|
275
275
|
}
|
|
@@ -290,7 +290,7 @@ exports.FailedToReadPRTemplateError = FailedToReadPRTemplateError;
|
|
|
290
290
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
291
291
|
*/
|
|
292
292
|
class FailedToDeletePRTemplateError extends problem_error_1.ProblemError {
|
|
293
|
-
constructor(details, additionalData, cause, instance) {
|
|
293
|
+
constructor(details, additionalData, cause, instance, logs) {
|
|
294
294
|
super({
|
|
295
295
|
title: 'Unable to delete pull request template',
|
|
296
296
|
type: 'https://docs.snyk.io/more-info/error-catalog#snyk-pr-template-0009',
|
|
@@ -301,7 +301,7 @@ class FailedToDeletePRTemplateError extends problem_error_1.ProblemError {
|
|
|
301
301
|
instance,
|
|
302
302
|
}, details, Object.assign({ links: [
|
|
303
303
|
'https://docs.snyk.io/scan-application-code/snyk-open-source/open-source-basics/customize-pr-templates-closed-beta',
|
|
304
|
-
] }, additionalData), cause);
|
|
304
|
+
] }, additionalData), cause, logs);
|
|
305
305
|
this.name = this.constructor.name;
|
|
306
306
|
}
|
|
307
307
|
}
|
|
@@ -319,7 +319,7 @@ exports.FailedToDeletePRTemplateError = FailedToDeletePRTemplateError;
|
|
|
319
319
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
320
320
|
*/
|
|
321
321
|
class PRTemplateInvalidPayloadError extends problem_error_1.ProblemError {
|
|
322
|
-
constructor(details, additionalData, cause, instance) {
|
|
322
|
+
constructor(details, additionalData, cause, instance, logs) {
|
|
323
323
|
super({
|
|
324
324
|
title: 'Invalid payload',
|
|
325
325
|
type: 'https://docs.snyk.io/more-info/error-catalog#snyk-pr-template-0010',
|
|
@@ -328,7 +328,7 @@ class PRTemplateInvalidPayloadError extends problem_error_1.ProblemError {
|
|
|
328
328
|
level: 'error',
|
|
329
329
|
classification: types_1.Classification.UNEXPECTED,
|
|
330
330
|
instance,
|
|
331
|
-
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
331
|
+
}, details, Object.assign({ links: [] }, additionalData), cause, logs);
|
|
332
332
|
this.name = this.constructor.name;
|
|
333
333
|
}
|
|
334
334
|
}
|
|
@@ -349,7 +349,7 @@ exports.PRTemplateInvalidPayloadError = PRTemplateInvalidPayloadError;
|
|
|
349
349
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
350
350
|
*/
|
|
351
351
|
class FailedToLoadCompiledJSONError extends problem_error_1.ProblemError {
|
|
352
|
-
constructor(details, additionalData, cause, instance) {
|
|
352
|
+
constructor(details, additionalData, cause, instance, logs) {
|
|
353
353
|
super({
|
|
354
354
|
title: 'Failed to load JSON file after substituting Snyk variables',
|
|
355
355
|
type: 'https://docs.snyk.io/more-info/error-catalog#snyk-pr-template-0011',
|
|
@@ -360,7 +360,7 @@ class FailedToLoadCompiledJSONError extends problem_error_1.ProblemError {
|
|
|
360
360
|
instance,
|
|
361
361
|
}, details, Object.assign({ links: [
|
|
362
362
|
'https://docs.snyk.io/scan-application-code/snyk-open-source/open-source-basics/customize-pr-templates-closed-beta',
|
|
363
|
-
] }, additionalData), cause);
|
|
363
|
+
] }, additionalData), cause, logs);
|
|
364
364
|
this.name = this.constructor.name;
|
|
365
365
|
}
|
|
366
366
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Fix-error-catalog.js","sourceRoot":"","sources":["../../../../../packages/error-catalog-nodejs-public/src/catalogs/Fix-error-catalog.ts"],"names":[],"mappings":";;;AAAA,oCAA0C;AAC1C,oDAAgD;AAEhD;;;;;;;;;;;;;;GAcG;AACH,MAAa,qCAAsC,SAAQ,4BAAY;IACrE,YACI,OAAe,EACf,cAAoC,EACpC,KAAa,EACb,QAAiB;
|
|
1
|
+
{"version":3,"file":"Fix-error-catalog.js","sourceRoot":"","sources":["../../../../../packages/error-catalog-nodejs-public/src/catalogs/Fix-error-catalog.ts"],"names":[],"mappings":";;;AAAA,oCAA0C;AAC1C,oDAAgD;AAEhD;;;;;;;;;;;;;;GAcG;AACH,MAAa,qCAAsC,SAAQ,4BAAY;IACrE,YACI,OAAe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KAAK,EAAE,EAAE,IACN,cAAc,GAEnB,KAAK,EACL,IAAI,CACL,CAAC;QACF,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;IACpC,CAAC;CACF;AA5BD,sEA4BC;AAED;;;;;;;;;;;;;;GAcG;AACH,MAAa,6BAA8B,SAAQ,4BAAY;IAC7D,YACI,OAAe,EACf,cAAoC,EACpC,KAAa,EACb,QAAiB,EACjB,IAAe;QAEjB,KAAK,CACH;YACE,KAAK,EAAE,4DAA4D;YACnE,IAAI,EAAE,oEAAoE;YAC1E,MAAM,EAAE,GAAG;YACX,SAAS,EAAE,uBAAuB;YAClC,KAAK,EAAE,OAAO;YACd,cAAc,EAAE,sBAAc,CAAC,UAAU;YACzC,QAAQ;SACT,EACD,OAAO,kBAEL,KAAK,EAAE;gBACP,mHAAmH;aAClH,IACE,cAAc,GAEnB,KAAK,EACL,IAAI,CACL,CAAC;QACF,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;IACpC,CAAC;CACF;AA9BD,sEA8BC"}
|
|
@@ -30,7 +30,7 @@ import { ProblemError } from '../problem-error';
|
|
|
30
30
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
31
31
|
*/
|
|
32
32
|
export declare class InvalidRequestError extends ProblemError {
|
|
33
|
-
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
|
|
33
|
+
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string, logs?: string[]);
|
|
34
34
|
}
|
|
35
35
|
/**
|
|
36
36
|
* @class
|
|
@@ -45,7 +45,7 @@ export declare class InvalidRequestError extends ProblemError {
|
|
|
45
45
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
46
46
|
*/
|
|
47
47
|
export declare class BuildEnvironmentNotFoundError extends ProblemError {
|
|
48
|
-
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
|
|
48
|
+
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string, logs?: string[]);
|
|
49
49
|
}
|
|
50
50
|
/**
|
|
51
51
|
* @class
|
|
@@ -63,5 +63,5 @@ export declare class BuildEnvironmentNotFoundError extends ProblemError {
|
|
|
63
63
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
64
64
|
*/
|
|
65
65
|
export declare class UnsupportedEcosystemError extends ProblemError {
|
|
66
|
-
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
|
|
66
|
+
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string, logs?: string[]);
|
|
67
67
|
}
|
|
@@ -34,7 +34,7 @@ const problem_error_1 = require("../problem-error");
|
|
|
34
34
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
35
35
|
*/
|
|
36
36
|
class InvalidRequestError extends problem_error_1.ProblemError {
|
|
37
|
-
constructor(details, additionalData, cause, instance) {
|
|
37
|
+
constructor(details, additionalData, cause, instance, logs) {
|
|
38
38
|
super({
|
|
39
39
|
title: 'Invalid request',
|
|
40
40
|
type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-8001',
|
|
@@ -45,7 +45,7 @@ class InvalidRequestError extends problem_error_1.ProblemError {
|
|
|
45
45
|
instance,
|
|
46
46
|
}, details, Object.assign({ links: [
|
|
47
47
|
'https://apidocs.snyk.io/',
|
|
48
|
-
] }, additionalData), cause);
|
|
48
|
+
] }, additionalData), cause, logs);
|
|
49
49
|
this.name = this.constructor.name;
|
|
50
50
|
}
|
|
51
51
|
}
|
|
@@ -63,7 +63,7 @@ exports.InvalidRequestError = InvalidRequestError;
|
|
|
63
63
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
64
64
|
*/
|
|
65
65
|
class BuildEnvironmentNotFoundError extends problem_error_1.ProblemError {
|
|
66
|
-
constructor(details, additionalData, cause, instance) {
|
|
66
|
+
constructor(details, additionalData, cause, instance, logs) {
|
|
67
67
|
super({
|
|
68
68
|
title: 'Build environment not found',
|
|
69
69
|
type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-8002',
|
|
@@ -72,7 +72,7 @@ class BuildEnvironmentNotFoundError extends problem_error_1.ProblemError {
|
|
|
72
72
|
level: 'warn',
|
|
73
73
|
classification: types_1.Classification.ACTIONABLE,
|
|
74
74
|
instance,
|
|
75
|
-
}, details, Object.assign({ links: [] }, additionalData), cause);
|
|
75
|
+
}, details, Object.assign({ links: [] }, additionalData), cause, logs);
|
|
76
76
|
this.name = this.constructor.name;
|
|
77
77
|
}
|
|
78
78
|
}
|
|
@@ -93,7 +93,7 @@ exports.BuildEnvironmentNotFoundError = BuildEnvironmentNotFoundError;
|
|
|
93
93
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
94
94
|
*/
|
|
95
95
|
class UnsupportedEcosystemError extends problem_error_1.ProblemError {
|
|
96
|
-
constructor(details, additionalData, cause, instance) {
|
|
96
|
+
constructor(details, additionalData, cause, instance, logs) {
|
|
97
97
|
super({
|
|
98
98
|
title: 'Unsupported Ecosystem',
|
|
99
99
|
type: 'https://docs.snyk.io/more-info/error-catalog#snyk-os-8003',
|
|
@@ -104,7 +104,7 @@ class UnsupportedEcosystemError extends problem_error_1.ProblemError {
|
|
|
104
104
|
instance,
|
|
105
105
|
}, details, Object.assign({ links: [
|
|
106
106
|
'https://docs.snyk.io/scan-applications/supported-languages-and-frameworks/supported-languages-frameworks-and-feature-availability-overview#open-source-and-licensing-snyk-open-source',
|
|
107
|
-
] }, additionalData), cause);
|
|
107
|
+
] }, additionalData), cause, logs);
|
|
108
108
|
this.name = this.constructor.name;
|
|
109
109
|
}
|
|
110
110
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IsolatedBuilds-error-catalog.js","sourceRoot":"","sources":["../../../../../packages/error-catalog-nodejs-public/src/catalogs/IsolatedBuilds-error-catalog.ts"],"names":[],"mappings":";;;AAAA,oCAA0C;AAC1C,oDAAgD;AAEhD;;;;;;;;;;;;;;GAcG;AACH,MAAa,mBAAoB,SAAQ,4BAAY;IACnD,YACI,OAAe,EACf,cAAoC,EACpC,KAAa,EACb,QAAiB;
|
|
1
|
+
{"version":3,"file":"IsolatedBuilds-error-catalog.js","sourceRoot":"","sources":["../../../../../packages/error-catalog-nodejs-public/src/catalogs/IsolatedBuilds-error-catalog.ts"],"names":[],"mappings":";;;AAAA,oCAA0C;AAC1C,oDAAgD;AAEhD;;;;;;;;;;;;;;GAcG;AACH,MAAa,mBAAoB,SAAQ,4BAAY;IACnD,YACI,OAAe,EACf,cAAoC,EACpC,KAAa,EACb,QAAiB,EACjB,IAAe;QAEjB,KAAK,CACH;YACE,KAAK,EAAE,iBAAiB;YACxB,IAAI,EAAE,2DAA2D;YACjE,MAAM,EAAE,GAAG;YACX,SAAS,EAAE,cAAc;YACzB,KAAK,EAAE,OAAO;YACd,cAAc,EAAE,sBAAc,CAAC,UAAU;YACzC,QAAQ;SACT,EACD,OAAO,kBAEL,KAAK,EAAE;gBACP,0BAA0B;aACzB,IACE,cAAc,GAEnB,KAAK,EACL,IAAI,CACL,CAAC;QACF,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;IACpC,CAAC;CACF;AA9BD,kDA8BC;AAED;;;;;;;;;;;GAWG;AACH,MAAa,6BAA8B,SAAQ,4BAAY;IAC7D,YACI,OAAe,EACf,cAAoC,EACpC,KAAa,EACb,QAAiB,EACjB,IAAe;QAEjB,KAAK,CACH;YACE,KAAK,EAAE,6BAA6B;YACpC,IAAI,EAAE,2DAA2D;YACjE,MAAM,EAAE,GAAG;YACX,SAAS,EAAE,cAAc;YACzB,KAAK,EAAE,MAAM;YACb,cAAc,EAAE,sBAAc,CAAC,UAAU;YACzC,QAAQ;SACT,EACD,OAAO,kBAEL,KAAK,EAAE,EAAE,IACN,cAAc,GAEnB,KAAK,EACL,IAAI,CACL,CAAC;QACF,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;IACpC,CAAC;CACF;AA5BD,sEA4BC;AAED;;;;;;;;;;;;;;GAcG;AACH,MAAa,yBAA0B,SAAQ,4BAAY;IACzD,YACI,OAAe,EACf,cAAoC,EACpC,KAAa,EACb,QAAiB,EACjB,IAAe;QAEjB,KAAK,CACH;YACE,KAAK,EAAE,uBAAuB;YAC9B,IAAI,EAAE,2DAA2D;YACjE,MAAM,EAAE,GAAG;YACX,SAAS,EAAE,cAAc;YACzB,KAAK,EAAE,OAAO;YACd,cAAc,EAAE,sBAAc,CAAC,UAAU;YACzC,QAAQ;SACT,EACD,OAAO,kBAEL,KAAK,EAAE;gBACP,uLAAuL;aACtL,IACE,cAAc,GAEnB,KAAK,EACL,IAAI,CACL,CAAC;QACF,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;IACpC,CAAC;CACF;AA9BD,8DA8BC"}
|
|
@@ -30,7 +30,7 @@ import { ProblemError } from '../problem-error';
|
|
|
30
30
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
31
31
|
*/
|
|
32
32
|
export declare class BadRequestError extends ProblemError {
|
|
33
|
-
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
|
|
33
|
+
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string, logs?: string[]);
|
|
34
34
|
}
|
|
35
35
|
/**
|
|
36
36
|
* @class
|
|
@@ -45,7 +45,7 @@ export declare class BadRequestError extends ProblemError {
|
|
|
45
45
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
46
46
|
*/
|
|
47
47
|
export declare class ForbiddenError extends ProblemError {
|
|
48
|
-
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
|
|
48
|
+
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string, logs?: string[]);
|
|
49
49
|
}
|
|
50
50
|
/**
|
|
51
51
|
* @class
|
|
@@ -60,7 +60,7 @@ export declare class ForbiddenError extends ProblemError {
|
|
|
60
60
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
61
61
|
*/
|
|
62
62
|
export declare class NotAcceptableError extends ProblemError {
|
|
63
|
-
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
|
|
63
|
+
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string, logs?: string[]);
|
|
64
64
|
}
|
|
65
65
|
/**
|
|
66
66
|
* @class
|
|
@@ -75,7 +75,7 @@ export declare class NotAcceptableError extends ProblemError {
|
|
|
75
75
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
76
76
|
*/
|
|
77
77
|
export declare class NotFoundError extends ProblemError {
|
|
78
|
-
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
|
|
78
|
+
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string, logs?: string[]);
|
|
79
79
|
}
|
|
80
80
|
/**
|
|
81
81
|
* @class
|
|
@@ -90,7 +90,7 @@ export declare class NotFoundError extends ProblemError {
|
|
|
90
90
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
91
91
|
*/
|
|
92
92
|
export declare class MethodNotAllowedError extends ProblemError {
|
|
93
|
-
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
|
|
93
|
+
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string, logs?: string[]);
|
|
94
94
|
}
|
|
95
95
|
/**
|
|
96
96
|
* @class
|
|
@@ -105,7 +105,7 @@ export declare class MethodNotAllowedError extends ProblemError {
|
|
|
105
105
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
106
106
|
*/
|
|
107
107
|
export declare class RequestEntityTooLargeError extends ProblemError {
|
|
108
|
-
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
|
|
108
|
+
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string, logs?: string[]);
|
|
109
109
|
}
|
|
110
110
|
/**
|
|
111
111
|
* @class
|
|
@@ -123,7 +123,7 @@ export declare class RequestEntityTooLargeError extends ProblemError {
|
|
|
123
123
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
124
124
|
*/
|
|
125
125
|
export declare class UnauthorizedError extends ProblemError {
|
|
126
|
-
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
|
|
126
|
+
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string, logs?: string[]);
|
|
127
127
|
}
|
|
128
128
|
/**
|
|
129
129
|
* @class
|
|
@@ -138,5 +138,5 @@ export declare class UnauthorizedError extends ProblemError {
|
|
|
138
138
|
* @param {string} [instance] the instance to use for this error. Overrides 'instance' metadata
|
|
139
139
|
*/
|
|
140
140
|
export declare class UnsupportedMediaTypeError extends ProblemError {
|
|
141
|
-
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string);
|
|
141
|
+
constructor(details: string, additionalData?: Record<string, any>, cause?: Error, instance?: string, logs?: string[]);
|
|
142
142
|
}
|