mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
22 lines
477 B
TypeScript
22 lines
477 B
TypeScript
/* eslint-disable max-classes-per-file */
|
|
export class DuplicateItemError extends Error {
|
|
constructor(message: string) {
|
|
super(message)
|
|
this.name = 'DuplicateItemError'
|
|
}
|
|
}
|
|
|
|
export class ParentNotExistsError extends Error {
|
|
constructor(message: string) {
|
|
super(message)
|
|
this.name = 'ParentNotExistsError'
|
|
}
|
|
}
|
|
|
|
export class FileNotExistsError extends Error {
|
|
constructor(message: string) {
|
|
super(message)
|
|
this.name = 'FileNotExistsError'
|
|
}
|
|
}
|