overleaf/services/web/frontend/js/features/file-tree/errors.js
Hugh O'Brien be51810be5 Merge pull request #3410 from overleaf/hb-validate-new-folder
React File Tree - Validate new folder names and renames

GitOrigin-RevId: f040eb08e2daefb3dfd639e18aaef95d7123d727
2020-12-10 03:04:38 +00:00

11 lines
213 B
JavaScript

export class InvalidFilenameError extends Error {
constructor() {
super('invalid filename')
}
}
export class DuplicateFilenameError extends Error {
constructor() {
super('duplicate filename')
}
}