Exception handling in EmailRepository