@zip.js/zip.js
    Preparing search index...

    Interface EntryError

    Represents an error raised while processing an archive or one of its entries, decorated with context.

    interface EntryError {
        corruptedEntry?: boolean;
        entryErrors?: EntryError[];
        entryId?: number;
        entryName?: string;
        exportedEntryNames?: string[];
        message: string;
        name: string;
        overlappingEntry?: Entry;
        reason?: string;
        stack?: string;
    }

    Hierarchy

    • Error
      • EntryError
    Index
    corruptedEntry?: boolean

    true if the zip file is corrupted because the entry data could not be written entirely.

    entryErrors?: EntryError[]

    The other entries that also failed, when ZipDirectoryEntry#exportFileSystemHandle runs with concurrent set to true and more than one entry fails (filesystem API). The error it is set on is not repeated in the list, and failures raised deeper in the tree are flattened into it, so the list holds every failure of the export except this one.

    entryId?: number

    The id of the related ZipEntry (filesystem API).

    entryName?: string

    The name of the related ZipEntry, or of the related FileSystemHandle when importing one (filesystem API). Set by ZipDirectoryEntry#addFileSystemHandle and ZipDirectoryEntry#exportFileSystemHandle, which rethrow the original error rather than wrapping it, so its message stays comparable to the exported ERR_* constants.

    exportedEntryNames?: string[]

    The names of the files ZipDirectoryEntry#exportFileSystemHandle finished writing before it failed, relative to the exported entry (filesystem API). Directories are not listed. Every other file of the export is either missing or empty, so this is the only way to tell a file the export completed from one it created but never filled.

    message: string
    name: string
    overlappingEntry?: Entry

    The entry whose data overlaps the data of the entry being read, set on the ERR_OVERLAPPING_ENTRY error raised by ZipReaderOptions#checkOverlappingEntry. It is the only way to identify the other entry of the pair.

    reason?: string

    The ambiguity that was detected, set on the ERR_AMBIGUOUS_ARCHIVE error raised by GetEntriesOptions#strictness. See ERR_AMBIGUOUS_ARCHIVE for the values it takes.

    stack?: string