Exception handling doesn't hide errors