Hacker News new | ask | show | jobs
by jbreiding 3058 days ago
Why not just check the inner exception type instead of the contents? This seems more accurate than relying on the contents to contain a specific string.