You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
403 B
13 lines
403 B
|
|
export default {
|
|
// Error thrown by mongoose in case of validation error
|
|
MONGOOSE_VALIDATION_ERROR: 'ValidationError',
|
|
|
|
// Error thrown by mongoose in case of casting error (writing string to Number field)
|
|
MONGOOSE_CAST_ERROR: 'CastError',
|
|
|
|
// Error thrown by mongoose in case of inserting duplicate record
|
|
// with some property marked as `unique`
|
|
MONGOOSE_DUPLICATE_ERROR_CODE: 11000,
|
|
}
|