CWE-209 - Common Weaknesses Enumeration (CWE) description of "Error Message Information Leak"
Use Encapsulation Cautiously - The report "Enhancing the Development Life Cycle to Produce Secure Software" describes effective error handling, with generic (uninformative) error messages being sent to the user.