Hacker News new | ask | show | jobs
by tedunangst 2165 days ago
What specifically goes in the catch block? Please be precise.
2 comments

In the case of an appliance device where the XML file was externally supplied? Continue as though the file never existed (and possibly also delete the XML file).
Either proceed with some safe default values or at least go into a maintenance mode, where the file can be replaced or newly downloaded.