Variable: REASONS
Documentation / @wtf/platform-fs / errors / REASONS
const REASONS: Readonly<Record<FileSystemErrorName, SystemErrorReason>>;Defined in: packages/platform-fs/src/errors.ts:50
The reason of each DOMException a handle fails with:
| Name | Reason | Of |
|---|---|---|
NotFoundError | NotFound | an entry that is not there |
TypeMismatchError | BadResource | an entry of the other kind |
InvalidModificationError | BadResource | a folder not empty, a folder into itself |
InvalidStateError | BadResource | a handle or a writable of no more use |
NoModificationAllowedError | Busy | an entry another writable holds |
NotAllowedError | PermissionDenied | what may not be read or written |
SecurityError | PermissionDenied | what the page may not reach |
QuotaExceededError | WriteZero | a write with no room left |
NotReadableError | InvalidData | a snapshot stale, a read failed |
TimeoutError | TimedOut | a wait that ran out |
NotSupportedError | Unknown | what the platform does not do |
AbortError | Unknown | a call aborted |
The cause’s name tells two of one reason apart.
