Skip to content

Remove FormatException exceptions from public functions of TIFF writer#1971

Merged
petebankhead merged 2 commits intoqupath:mainfrom
Rylern:not-expose-bioformats-exceptions-in-tiff-writer
Aug 8, 2025
Merged

Remove FormatException exceptions from public functions of TIFF writer#1971
petebankhead merged 2 commits intoqupath:mainfrom
Rylern:not-expose-bioformats-exceptions-in-tiff-writer

Conversation

@Rylern
Copy link
Contributor

@Rylern Rylern commented Aug 8, 2025

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.

@petebankhead petebankhead merged commit aeb2220 into qupath:main Aug 8, 2025
3 checks passed
@Rylern Rylern deleted the not-expose-bioformats-exceptions-in-tiff-writer branch August 8, 2025 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants