Skip to content

0.2.0: Error handling based on exceptions

Choose a tag to compare

@wapmorgan wapmorgan released this 02 Feb 00:44
· 211 commits to master since this release
4d136dc

BC-breaking changes:

  • Deleted deprecated UnifiedArchive methods: extractNode, archiveNodes.
  • All mutable methods throws exceptions on errors now:
    • getFileData, getFileContent, getFileResource throws NonExistentArchiveFileException when file is not present in archive.
    • extractFiles throws:
      • EmptyFileListException
      • ArchiveExtractionException
    • deleteFiles, addFiles, addFile and addDirectory throws:
      • EmptyFileListException
      • UnsupportedOperationException
      • ArchiveModificationException
    • archiveFiles, archiveFile and archiveDirectory throws:
      • FileAlreadyExistsException
      • EmptyFileListException
      • UnsupportedOperationException
      • ArchiveCreationException
  • Functionality of preparing files list for archiving is moved from archiveFiles() to prepareForArchiving().