ASP.NET Exception Handling

  • Thread starter Thread starter Wing Siu
  • Start date Start date
W

Wing Siu

Dear All

I would like to ask you an opinion of ASP.NET exception handling
I am working in a software house and need to deliver a system to our
customer.

However, as we knew (of course it can not use as excuse), we cannot promise
the system is 100% bugs free. The system will throw an exception to the user
(yellow background and red message), in this case, I have developed a
Exception Logged tools to catch all ASP.NET exception, however, if you were
me, how do you inform the current customer the system has problem and the
problem has sent to developer, and developers will fix it ASAP?

Thanks
 
You can introduce a hidden input control for passing error messages from
server to client. On client-side handle the body's onload event to check the
hidden control value and produce an alert box if it is not empty.
 
You can build a custom error page that shows up instead of a (yellow
background and red message) . you can design the page so beautifully that
the client dosen't get alarmed about an error
then you edit your web.config file to look like this

<configuration>
<system.web>
<customErrors defaultRedirect="error.htm" mode="On" />
</system.web>
</configuration> where error.htm is your sweet looking error page
Eliyahu Goldin said:
You can introduce a hidden input control for passing error messages from
server to client. On client-side handle the body's onload event to check
the hidden control value and produce an alert box if it is not empty.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]


Wing Siu said:
Dear All

I would like to ask you an opinion of ASP.NET exception handling
I am working in a software house and need to deliver a system to our
customer.

However, as we knew (of course it can not use as excuse), we cannot
promise
the system is 100% bugs free. The system will throw an exception to the
user
(yellow background and red message), in this case, I have developed a
Exception Logged tools to catch all ASP.NET exception, however, if you
were
me, how do you inform the current customer the system has problem and the
problem has sent to developer, and developers will fix it ASAP?

Thanks
 
Back
Top