<div dir="ltr">Hello<div><br></div><div>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:</div><div><br></div><div>1. File is not present</div><div>2. File is present, but not a valid music file</div><div>3. File is valid music file, but tags are corrupt or something goes wrong when reading them</div><div>4. File is valid, but all tags are empty</div><div><br></div><div><br></div><div>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. </div><div><br></div><div><br></div><div>Thank you</div><div><br></div></div><div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br>
<table style="border-top:1px solid #d3d4de">
        <tr>
        <td style="width:55px;padding-top:13px"><a href="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-green-avg-v1.png" alt="" width="46" height="29" style="width: 46px; height: 29px;"></a></td>
                <td style="width:470px;padding-top:12px;color:#41424e;font-size:13px;font-family:Arial,Helvetica,sans-serif;line-height:18px">Virus-free. <a href="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank" style="color:#4453ea">www.avg.com</a>
                </td>
        </tr>
</table><a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"></a></div>