how to get the error code in MVC3 using C#.Net


My application is in mvc3 coded in
What im trying to do is creating an exception handling utility.
If an error exists in the application on the code controller code then it should go to the catch statement where i want to fetch the error code of that particular error.
I will pass this error code to a particular global class of mine where depending on the error code it will return a user friendly message regarding the error.
Below is the link of .net error.
.Net Error Code

Depending on the error code recieved i want show the message.
Please suggest how can i achieve this.

edit | flag
Ehtesham Siddiqui
Asked on: Nov 27, 2012 at 6:26PM

0 Answers

No Answers yet! Be first to Answer this Question

Post your Answer


Welcome to Ask Amoeba!
This is 100% free and interactive site for sharing professional Questions and Answers, Opensource projects, Interview questions.
Learners, beginners, Experts stop and share your knowledge and ideas!

Browse Categories

Browse Tags