Error handling advice for taglib

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


Hello

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
scenarios:

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


<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Virus-free.
www.avg.com
<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/taglib-devel/attachments/20190605/130a1fab/attachment.html>


More information about the taglib-devel mailing list