@cumulus/errors 16.1.1 → 18.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +18 -11
- package/dist/index.js +7 -6
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -137,7 +137,7 @@ export declare const MissingBucketMap: {
|
|
|
137
137
|
/**
|
|
138
138
|
* The provider info is missing error
|
|
139
139
|
*/
|
|
140
|
-
export declare const
|
|
140
|
+
export declare const ApiCollisionError: {
|
|
141
141
|
new (message: string): {
|
|
142
142
|
name: string;
|
|
143
143
|
message: string;
|
|
@@ -193,7 +193,14 @@ export declare const FTPError: {
|
|
|
193
193
|
stack?: string | undefined;
|
|
194
194
|
};
|
|
195
195
|
};
|
|
196
|
-
export declare const
|
|
196
|
+
export declare const GranuleNotPublished: {
|
|
197
|
+
new (message: string): {
|
|
198
|
+
name: string;
|
|
199
|
+
message: string;
|
|
200
|
+
stack?: string | undefined;
|
|
201
|
+
};
|
|
202
|
+
};
|
|
203
|
+
export declare const GranuleFileWriteError: {
|
|
197
204
|
new (message: string): {
|
|
198
205
|
name: string;
|
|
199
206
|
message: string;
|
|
@@ -249,63 +256,63 @@ export declare const MissingRequiredEnvVar: {
|
|
|
249
256
|
stack?: string | undefined;
|
|
250
257
|
};
|
|
251
258
|
};
|
|
252
|
-
export declare const
|
|
259
|
+
export declare const MissingRequiredEnvVarError: {
|
|
253
260
|
new (message: string): {
|
|
254
261
|
name: string;
|
|
255
262
|
message: string;
|
|
256
263
|
stack?: string | undefined;
|
|
257
264
|
};
|
|
258
265
|
};
|
|
259
|
-
export declare const
|
|
266
|
+
export declare const PDRParsingError: {
|
|
260
267
|
new (message: string): {
|
|
261
268
|
name: string;
|
|
262
269
|
message: string;
|
|
263
270
|
stack?: string | undefined;
|
|
264
271
|
};
|
|
265
272
|
};
|
|
266
|
-
export declare const
|
|
273
|
+
export declare const ProviderNotFound: {
|
|
267
274
|
new (message: string): {
|
|
268
275
|
name: string;
|
|
269
276
|
message: string;
|
|
270
277
|
stack?: string | undefined;
|
|
271
278
|
};
|
|
272
279
|
};
|
|
273
|
-
export declare const
|
|
280
|
+
export declare const RecordAlreadyMigrated: {
|
|
274
281
|
new (message: string): {
|
|
275
282
|
name: string;
|
|
276
283
|
message: string;
|
|
277
284
|
stack?: string | undefined;
|
|
278
285
|
};
|
|
279
286
|
};
|
|
280
|
-
export declare const
|
|
287
|
+
export declare const RecordDoesNotExist: {
|
|
281
288
|
new (message: string): {
|
|
282
289
|
name: string;
|
|
283
290
|
message: string;
|
|
284
291
|
stack?: string | undefined;
|
|
285
292
|
};
|
|
286
293
|
};
|
|
287
|
-
export declare const
|
|
294
|
+
export declare const UnexpectedFileSize: {
|
|
288
295
|
new (message: string): {
|
|
289
296
|
name: string;
|
|
290
297
|
message: string;
|
|
291
298
|
stack?: string | undefined;
|
|
292
299
|
};
|
|
293
300
|
};
|
|
294
|
-
export declare const
|
|
301
|
+
export declare const UnmatchedRegexError: {
|
|
295
302
|
new (message: string): {
|
|
296
303
|
name: string;
|
|
297
304
|
message: string;
|
|
298
305
|
stack?: string | undefined;
|
|
299
306
|
};
|
|
300
307
|
};
|
|
301
|
-
export declare const
|
|
308
|
+
export declare const UnparsableFileLocationError: {
|
|
302
309
|
new (message: string): {
|
|
303
310
|
name: string;
|
|
304
311
|
message: string;
|
|
305
312
|
stack?: string | undefined;
|
|
306
313
|
};
|
|
307
314
|
};
|
|
308
|
-
export declare const
|
|
315
|
+
export declare const ValidationError: {
|
|
309
316
|
new (message: string): {
|
|
310
317
|
name: string;
|
|
311
318
|
message: string;
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UnmetRequirementsError = exports.IndexExistsError = exports.PostgresUpdateFailed = exports.PostgresValidationError = exports.
|
|
3
|
+
exports.UnmetRequirementsError = exports.IndexExistsError = exports.PostgresUpdateFailed = exports.PostgresValidationError = exports.ValidationError = exports.UnparsableFileLocationError = exports.UnmatchedRegexError = exports.UnexpectedFileSize = exports.RecordDoesNotExist = exports.RecordAlreadyMigrated = exports.ProviderNotFound = exports.PDRParsingError = exports.MissingRequiredEnvVarError = exports.MissingRequiredEnvVar = exports.MissingRequiredArgument = exports.MismatchPdrCollection = exports.InvalidRegexError = exports.InvalidChecksum = exports.InvalidArgument = exports.HostNotFound = exports.GranuleFileWriteError = exports.GranuleNotPublished = exports.FTPError = exports.FileNotFound = exports.EcsStartTaskError = exports.DuplicateFile = exports.DeletePublishedGranule = exports.CumulusMessageError = exports.ConnectionTimeout = exports.ApiCollisionError = exports.MissingBucketMap = exports.CMRInternalError = exports.CMRMetaFileNotFound = exports.XmlMetaFileNotFound = exports.RemoteResourceError = exports.ResourcesLockedError = exports.IncompleteError = exports.NotNeededError = exports.WorkflowError = exports.isConditionalCheckException = exports.isWorkflowError = exports.isThrottlingException = exports.ThrottlingException = exports.createErrorType = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* Creates a new error type with the given name and parent class. Sets up
|
|
6
6
|
* boilerplate necessary to successfully subclass Error and preserve stack trace
|
|
@@ -84,7 +84,7 @@ exports.MissingBucketMap = (0, exports.createErrorType)('MissingBucketMap');
|
|
|
84
84
|
/**
|
|
85
85
|
* The provider info is missing error
|
|
86
86
|
*/
|
|
87
|
-
exports.
|
|
87
|
+
exports.ApiCollisionError = (0, exports.createErrorType)('ApiCollisionError');
|
|
88
88
|
exports.ConnectionTimeout = (0, exports.createErrorType)('ConnectionTimeout');
|
|
89
89
|
exports.CumulusMessageError = (0, exports.createErrorType)('CumulusMessageError');
|
|
90
90
|
exports.DeletePublishedGranule = (0, exports.createErrorType)('DeletePublishedGranule');
|
|
@@ -92,7 +92,8 @@ exports.DuplicateFile = (0, exports.createErrorType)('DuplicateFile');
|
|
|
92
92
|
exports.EcsStartTaskError = (0, exports.createErrorType)('EcsStartTaskError');
|
|
93
93
|
exports.FileNotFound = (0, exports.createErrorType)('FileNotFound');
|
|
94
94
|
exports.FTPError = (0, exports.createErrorType)('FTPError');
|
|
95
|
-
exports.
|
|
95
|
+
exports.GranuleNotPublished = (0, exports.createErrorType)('GranuleNotPublished');
|
|
96
|
+
exports.GranuleFileWriteError = (0, exports.createErrorType)('GranuleFileWriteError');
|
|
96
97
|
exports.HostNotFound = (0, exports.createErrorType)('HostNotFound');
|
|
97
98
|
exports.InvalidArgument = (0, exports.createErrorType)('InvalidArgument');
|
|
98
99
|
exports.InvalidChecksum = (0, exports.createErrorType)('InvalidChecksum');
|
|
@@ -100,15 +101,15 @@ exports.InvalidRegexError = (0, exports.createErrorType)('InvalidRegexError');
|
|
|
100
101
|
exports.MismatchPdrCollection = (0, exports.createErrorType)('MismatchPdrCollection');
|
|
101
102
|
exports.MissingRequiredArgument = (0, exports.createErrorType)('MissingRequiredArgument');
|
|
102
103
|
exports.MissingRequiredEnvVar = (0, exports.createErrorType)('MissingRequiredEnvVar');
|
|
104
|
+
exports.MissingRequiredEnvVarError = (0, exports.createErrorType)('MissingRequiredEnvVarError');
|
|
103
105
|
exports.PDRParsingError = (0, exports.createErrorType)('PDRParsingError');
|
|
106
|
+
exports.ProviderNotFound = (0, exports.createErrorType)('ProviderNotFound');
|
|
107
|
+
exports.RecordAlreadyMigrated = (0, exports.createErrorType)('RecordAlreadyMigrated');
|
|
104
108
|
exports.RecordDoesNotExist = (0, exports.createErrorType)('RecordDoesNotExist');
|
|
105
109
|
exports.UnexpectedFileSize = (0, exports.createErrorType)('UnexpectedFileSize');
|
|
106
110
|
exports.UnmatchedRegexError = (0, exports.createErrorType)('UnmatchedRegexError');
|
|
107
111
|
exports.UnparsableFileLocationError = (0, exports.createErrorType)('UnparsableFileLocationError');
|
|
108
112
|
exports.ValidationError = (0, exports.createErrorType)('ValidationError');
|
|
109
|
-
exports.MissingRequiredEnvVarError = (0, exports.createErrorType)('MissingRequiredEnvVarError');
|
|
110
|
-
exports.RecordAlreadyMigrated = (0, exports.createErrorType)('RecordAlreadyMigrated');
|
|
111
|
-
exports.GranuleNotPublished = (0, exports.createErrorType)('GranuleNotPublished');
|
|
112
113
|
class PostgresValidationError extends exports.ValidationError {
|
|
113
114
|
constructor(message) {
|
|
114
115
|
super(message);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cumulus/errors",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "18.0.0",
|
|
4
4
|
"description": "Provides error classes for Cumulus",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"GIBS",
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
},
|
|
33
33
|
"author": "Cumulus Authors",
|
|
34
34
|
"license": "Apache-2.0",
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "43bcef7c0d979a05cd2dd559b811f4ac8f85a9b1"
|
|
36
36
|
}
|