12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- /**
- * @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;
- }
|