Skip to content

Commit 3a2a41d

Browse files
committed
feat: export more errors
1 parent ee658a6 commit 3a2a41d

File tree

1 file changed

+34
-1
lines changed

1 file changed

+34
-1
lines changed

errors.js

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,39 @@
1-
const { APIError, Forbidden } = require('./dist/errors');
1+
const {
2+
APIError,
3+
AuthenticationError,
4+
DuplicateCollection,
5+
DuplicateGlobal,
6+
ErrorDeletingFile,
7+
FileUploadError,
8+
Forbidden,
9+
InvalidConfiguration,
10+
InvalidFieldName,
11+
InvalidFieldRelationship,
12+
LockedAuth,
13+
MissingCollectionLabel,
14+
MissingFieldInputOptions,
15+
MissingFieldType,
16+
MissingFile,
17+
NotFound,
18+
ValidationError,
19+
} = require('./dist/errors');
220

321
module.exports = {
422
APIError,
23+
AuthenticationError,
24+
DuplicateCollection,
25+
DuplicateGlobal,
26+
ErrorDeletingFile,
27+
FileUploadError,
528
Forbidden,
29+
InvalidConfiguration,
30+
InvalidFieldName,
31+
InvalidFieldRelationship,
32+
LockedAuth,
33+
MissingCollectionLabel,
34+
MissingFieldInputOptions,
35+
MissingFieldType,
36+
MissingFile,
37+
NotFound,
38+
ValidationError,
639
};

0 commit comments

Comments
 (0)