Skip to content

errors

Documentation / @wtf/platform-fs / errors

The errors of a file system. A handle fails with a DOMException, by the standard’s names (FileSystemErrorName); a library that calls one raises a PlatformError of @wtf/platform/errors, the base of every error, by fsErrorOf, of the handle’s DOMException as its cause; REASONS says the reason of each name.

try {
await folder.removeEntry('out')
} catch (error) {
throw fsErrorOf(error, { method: 'removeEntry', path: 'out' })
}

Type Aliases

Variables

Functions