Update code to throw exception instead of let's it pass through.