overleaf/services/web/frontend/js/features/file-tree/errors.js
Eric Mc Sween e1ffeef06a Merge pull request #3561 from overleaf/ta-file-tree-move-fixes
[ReactFileTree] Move & Rename Validation Fixes

GitOrigin-RevId: 30c2ff17454246c82a03d0b869a810048c9f5dad
2021-01-15 03:05:24 +00:00

23 lines
439 B
JavaScript

export class InvalidFilenameError extends Error {
constructor() {
super('invalid filename')
}
}
export class BlockedFilenameError extends Error {
constructor() {
super('blocked filename')
}
}
export class DuplicateFilenameError extends Error {
constructor() {
super('duplicate filename')
}
}
export class DuplicateFilenameMoveError extends Error {
constructor() {
super('duplicate filename on move')
}
}