I was wondering what kind of exception should one throw for missing data. For example if an xml node doesn\'t contain data. It would be easy to \"throw new Exception(...
There is also System.Data.ObjectNotFoundException class which you may consider.
System.Data.ObjectNotFoundException
Update: As of Entity Framework 6, this exception class' fully qualified name is System.Data.Entity.Core.ObjectNotFoundException.
System.Data.Entity.Core.ObjectNotFoundException
See this question for further details on EF5->EF6 namespace changes.