I'm trying to catch the exception throwenthrown when I insert a already existing user with the given username into my database. As the title says then I'm using EF. The only exception thats throwenthat's thrown when I try to insert the user into to db is a "UpdateException" - How can I extract this exception to identify whether its a duplicate exception or something else?
John Saunders
- 161.9k
- 26
- 252
- 403