Download node_modules/@humanfs/core/dist/errors.d.ts from metarm/QMetaRam: direct link, hf CLI and curl.
- Browser
- Download file 1.33 kB
-
https://huggingface.co/metarm/QMetaRam/resolve/main/node_modules/%40humanfs/core/dist/errors.d.ts
- Command line
-
hf download hf://metarm/QMetaRam/node_modules/@humanfs/core/dist/errors.d.ts
-
curl -L -o errors.d.ts https://huggingface.co/metarm/QMetaRam/resolve/main/node_modules/%40humanfs/core/dist/errors.d.ts
1.33 kB
| /** | |
| * @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; | |
| } | |