UNPKG

alacritty-theme-switch

Version:
84 lines 2.51 kB
/** * Module for defining custom error types for file and directory operations. */ /** * Error thrown when a file is not found. */ export declare class FileNotFoundError extends Error { readonly _tag = "FileNotFoundError"; path: string; constructor(path: string, options?: ErrorOptions); } /** * Error thrown when a file is not readable. */ export declare class FileNotReadableError extends Error { readonly _tag = "FileNotReadableError"; path: string; constructor(path: string, options?: ErrorOptions); } /** * Error thrown when a file is not a TOML file. */ export declare class FileNotTOMLError extends Error { readonly _tag = "FileNotTOMLError"; path: string; constructor(path: string, options?: ErrorOptions); } /** * Error thrown when a path is expected to be a file but is a directory. */ export declare class FileIsDirectoryError extends Error { readonly _tag = "FileIsDirectoryError"; path: string; constructor(path: string, options?: ErrorOptions); } /** * Error thrown when deleting a file fails. */ export declare class FileDeletionError extends Error { readonly _tag = "FileDeletionError"; path: string; constructor(path: string, options?: ErrorOptions); } /** * Error thrown when a path is expected to be a directory but is a file. */ export declare class DirectoryIsFileError extends Error { readonly _tag = "DirectoryIsFileError"; path: string; constructor(path: string, options?: ErrorOptions); } /** * Error thrown when a path is not a directory. */ export declare class DirectoryNotDirectoryError extends Error { readonly _tag = "DirectoryNotDirectoryError"; path: string; constructor(path: string, options?: ErrorOptions); } /** * Error thrown when a directory does not exist or is not accessible. */ export declare class DirectoryNotAccessibleError extends Error { readonly _tag = "DirectoryNotAccessibleError"; path: string | URL; constructor(path: string | URL, options?: ErrorOptions); } /** * Error thrown when creating a directory fails. */ export declare class DirectoryCreateError extends Error { readonly _tag = "DirectoryCreateError"; path: string; constructor(path: string, options?: ErrorOptions); } /** * Error thrown when writing to a file fails. */ export declare class WriteError extends Error { readonly _tag = "WriteError"; path: string; constructor(path: string, options?: ErrorOptions); } //# sourceMappingURL=fs-errors.d.ts.map