Skip to content

StorageError

Defined in: src/errors.ts:264

Error thrown when a storage operation fails.

Wraps backend-specific errors (filesystem, S3, network) with a uniform type that consumers can catch without knowing which backend is in use.

  • Error
new StorageError(message, options?): StorageError;

Defined in: src/errors.ts:271

Creates a new StorageError.

ParameterTypeDescription
messagestringError message describing the storage failure
options?ErrorOptionsOptional error options including cause for error chaining

StorageError

Error.constructor