errors.js 1.9 KB

1234567891011121314151617181920212223242526272829303132333435
  1. module.exports = {
  2. /* Header error messages */
  3. "INVALID_LOC" : "Invalid LOC header (bad signature)",
  4. "INVALID_CEN" : "Invalid CEN header (bad signature)",
  5. "INVALID_END" : "Invalid END header (bad signature)",
  6. /* ZipEntry error messages*/
  7. "NO_DATA" : "Nothing to decompress",
  8. "BAD_CRC" : "CRC32 checksum failed",
  9. "FILE_IN_THE_WAY" : "There is a file in the way: %s",
  10. "UNKNOWN_METHOD" : "Invalid/unsupported compression method",
  11. /* Inflater error messages */
  12. "AVAIL_DATA" : "inflate::Available inflate data did not terminate",
  13. "INVALID_DISTANCE" : "inflate::Invalid literal/length or distance code in fixed or dynamic block",
  14. "TO_MANY_CODES" : "inflate::Dynamic block code description: too many length or distance codes",
  15. "INVALID_REPEAT_LEN" : "inflate::Dynamic block code description: repeat more than specified lengths",
  16. "INVALID_REPEAT_FIRST" : "inflate::Dynamic block code description: repeat lengths with no first length",
  17. "INCOMPLETE_CODES" : "inflate::Dynamic block code description: code lengths codes incomplete",
  18. "INVALID_DYN_DISTANCE": "inflate::Dynamic block code description: invalid distance code lengths",
  19. "INVALID_CODES_LEN": "inflate::Dynamic block code description: invalid literal/length code lengths",
  20. "INVALID_STORE_BLOCK" : "inflate::Stored block length did not match one's complement",
  21. "INVALID_BLOCK_TYPE" : "inflate::Invalid block type (type == 3)",
  22. /* ADM-ZIP error messages */
  23. "CANT_EXTRACT_FILE" : "Could not extract the file",
  24. "CANT_OVERRIDE" : "Target file already exists",
  25. "NO_ZIP" : "No zip file was loaded",
  26. "NO_ENTRY" : "Entry doesn't exist",
  27. "DIRECTORY_CONTENT_ERROR" : "A directory cannot have content",
  28. "FILE_NOT_FOUND" : "File not found: %s",
  29. "NOT_IMPLEMENTED" : "Not implemented",
  30. "INVALID_FILENAME" : "Invalid filename",
  31. "INVALID_FORMAT" : "Invalid or unsupported zip format. No END header found"
  32. };