feat: export more errors
This commit is contained in:
35
errors.js
35
errors.js
@@ -1,6 +1,39 @@
|
|||||||
const { APIError, Forbidden } = require('./dist/errors');
|
const {
|
||||||
|
APIError,
|
||||||
|
AuthenticationError,
|
||||||
|
DuplicateCollection,
|
||||||
|
DuplicateGlobal,
|
||||||
|
ErrorDeletingFile,
|
||||||
|
FileUploadError,
|
||||||
|
Forbidden,
|
||||||
|
InvalidConfiguration,
|
||||||
|
InvalidFieldName,
|
||||||
|
InvalidFieldRelationship,
|
||||||
|
LockedAuth,
|
||||||
|
MissingCollectionLabel,
|
||||||
|
MissingFieldInputOptions,
|
||||||
|
MissingFieldType,
|
||||||
|
MissingFile,
|
||||||
|
NotFound,
|
||||||
|
ValidationError,
|
||||||
|
} = require('./dist/errors');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
APIError,
|
APIError,
|
||||||
|
AuthenticationError,
|
||||||
|
DuplicateCollection,
|
||||||
|
DuplicateGlobal,
|
||||||
|
ErrorDeletingFile,
|
||||||
|
FileUploadError,
|
||||||
Forbidden,
|
Forbidden,
|
||||||
|
InvalidConfiguration,
|
||||||
|
InvalidFieldName,
|
||||||
|
InvalidFieldRelationship,
|
||||||
|
LockedAuth,
|
||||||
|
MissingCollectionLabel,
|
||||||
|
MissingFieldInputOptions,
|
||||||
|
MissingFieldType,
|
||||||
|
MissingFile,
|
||||||
|
NotFound,
|
||||||
|
ValidationError,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user