Files
med-notes/.pnpm-store/v10/files/55/d49df88923e306b84b0582f42b92cf859df2b9b2506b282a616b32a35e6c5c933619fc052a12de2088a394f79c10eb04ff103a18eee9e5ba408b2cdf4d5480
2025-05-09 05:30:08 +02:00

65 lines
1.3 KiB
Plaintext

/**
* @fileoverview Common error classes
* @author Nicholas C. Zakas
*/
/**
* Error thrown when a file or directory is not found.
*/
export class NotFoundError extends Error {
/**
* Creates a new instance.
* @param {string} message The error message.
*/
constructor(message: string);
/**
* Error code.
* @type {string}
*/
code: string;
}
/**
* Error thrown when an operation is not permitted.
*/
export class PermissionError extends Error {
/**
* Creates a new instance.
* @param {string} message The error message.
*/
constructor(message: string);
/**
* Error code.
* @type {string}
*/
code: string;
}
/**
* Error thrown when an operation is not allowed on a directory.
*/
export class DirectoryError extends Error {
/**
* Creates a new instance.
* @param {string} message The error message.
*/
constructor(message: string);
/**
* Error code.
* @type {string}
*/
code: string;
}
/**
* Error thrown when a directory is not empty.
*/
export class NotEmptyError extends Error {
/**
* Creates a new instance.
* @param {string} message The error message.
*/
constructor(message: string);
/**
* Error code.
* @type {string}
*/
code: string;
}