Error handling advice for taglib

Manusha Wijekoon manusha1980 at
Wed Jun 5 03:12:09 BST 2019


I would like to know the recommended way of error handling when reading tag
content. As an example how do I handle errors in each of the following

1. File is not present
2. File is present, but not a valid music file
3. File is valid music file, but tags are corrupt or something goes wrong
when reading them
4. File is valid, but all tags are empty

I have tried calling isNull of File, doing null checks for
tag/audioProperties, but could not understand how exactly they should be
used in above error scenarios.

Thank you

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the taglib-devel mailing list