Remove FormatException exceptions from public functions of TIFF writer by Rylern · Pull Request #1971 · qupath/qupath

Catch loci.formats.FormatException exceptions from public functions of the TIFF writer and wrap them in IOExceptions.

This is needed because qupath-extension-bioformats doesn't make the BioFormats API available to other code, and yet expose some of the BioFormats API through the signature of public functions. This for example means that the TIFF writer cannot currently be used in external extensions.