All source code in ASP/ VbScript Ask a ASP/ VbScript Pro Discussion Forum Categories All jobs in ASP/ VbScript
Quick Search for:  in language:    
Creating,user,friendly,error,handler,pops,lik
   Code/Articles » |  Newest/Best » |  Community » |  Jobs » |  Other » |  Goto » | 
CategoriesSearch Newest CodeCoding ContestCode of the DayAsk A ProJobsUpload
ASP/ VbScript Stats

 Code: 281,486. lines
 Jobs: 101. postings

 How to support the site

 
Sponsored by:

 
You are in:
 
Login

NEW! LEARNING CENTER
Special educational offers, white papers, webcasts, podcasts

  NEW! Download Rational Performance Tester V8 (download now)
  NEW! Download Rational Functional Tester V8 (download now)
  NEW! Download Rational Service Tester for SOA Quality V8 (download now)
  NEW! Teleconference: Quality In Action - Using Rational Quality Manager with Functional, Performance and Web Service Testing Products (download now)
  NEW! Introducing IBM Rational AppScan Developer Edition – easing security testing by non-security professionals (download now)

 

 


Latest postings for ASP/ VbScript.
Click here to see a screenshot of this code!Mess Officer Management System (Sistem Pengurusan Mess Pegawai)
By Mohd Fauzi on 11/23

(Screen Shot)

Click here to put this ticker on your site!


Add this ticker to your desktop!


Daily Code Email
To join the 'Code of the Day' Mailing List click here!



 
 
   

Friendly Error Handler

Print
Email
 
article
Submitted on: 4/3/2001 11:15:20 PM
By: Hendry Cahyadi 
Level: Intermediate
User Rating: By 5 Users
Compatibility:ASP (Active Server Pages), HTML

Users have accessed this article 29075 times.
 
(About the author)
 
     Creating a user friendly error handler. This Friendly Error Handler pops up a VB liked dialog box to display error messages.

This article has accompanying files

 
 
Terms of Agreement:   
By using this article, you agree to the following terms...   
1) You may use this article in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.   
2) You MAY NOT redistribute this article (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
3) You may link to this article from another website, but ONLY if it is not wrapped in a frame. 
4) You will abide by any additional copyright restrictions which the author may have placed in the article or article's description.

Error Handler is the most critcal thing to be considered when you build your application. The more complex your application, the more probability of bug occurs inside your application. Novice programmers usually never or hardly think about this, so when an unexpected error occurs, the application will throw the user with a very confusing words (the error text from script engine) and sometimes it makes our user get more frustration since they don't know what happened and what to do. Some more experience programmers have tackle this issue but usually the application still shows the error text (but this one may be formatted well). Howerver, the error text is not a bad thing as it's a mean to tell the support person of what happened to our application. Some programmers prefer to rewrite the error message so it will be more meaningful to our user. But some of our users really allergic to see any error message as they got more frustration with their work.

Now, Friendly Error Handler will handle this thing. Instead of just showing the error text, this error handler will pop up a modal dialogbox (looks like VB message box). At first, this message box shows a generic message to tell our user that there's an error inside the application, if our user get more interested to know the details of the error, he could click on the detail button that will resize the message box and shows error message in more detail. If he doesn't like the detail message, he can click again on that button (the label changed!) and the message box will resize to its original size and not display the error details. Along with the message and detail button there're also other buttons, i.e.: Ok button and Contact Webmaster button. The Ok button will close the dialog box and bring back the user to the page where he comes from. The Contact Webmaster button will get the user to a page that has been designed for error or bug reporting center. The message box doesn't have to just have these buttons, feel free to extend it to fit your needs.

So the main goal of our error handler here is to make our user more happy. Have fun exploring the code.

winzip iconDownload article

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.

Virus note:All files are scanned once-a-day by Planet Source Code for viruses,but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:
1)Re-scan downloaded files using your personal virus checker before using it.
2)NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this article, you agree to the following terms...   
1) You may use this article in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.   
2) You MAY NOT redistribute this article (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
3) You may link to this article from another website, but ONLY if it is not wrapped in a frame. 
4) You will abide by any additional copyright restrictions which the author may have placed in the article or article's description.


Other 3 submission(s) by this author

 

 
 Report Bad Submission
Use this form to notify us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:
 
Your Vote!

What do you think of this article(in the Intermediate category)?
(The article with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor See Voting Log
 
Other User Comments
5/17/2001 9:53:58 AMRobert Long

Awesome...
(If this comment was disrespectful, please report it.)

 
7/14/2001 4:25:36 PMKenny McCormick

dude whats the code?

(If this comment was disrespectful, please report it.)

 
7/14/2001 4:26:06 PMKenny McCormick

put the code in the read me
(If this comment was disrespectful, please report it.)

 
7/20/2001 3:11:13 AMHendry Cahyadi

Kenny McCormick,

The code is in *.asp files and the main logic is in errHandler.asp.

Regards,

Hendry
(If this comment was disrespectful, please report it.)

 
3/27/2004 5:35:55 AM

Whats the code you used to call the message pop up window>?
(If this comment was disrespectful, please report it.)

 
Add Your Feedback!
Note:Not only will your feedback be posted, but an email will be sent to the code's author from the email account you registered on the site, so you can correspond directly.

NOTICE: The author of this article has been kind enough to share it with you.  If you have a criticism, please state it politely or it will be deleted.

For feedback not related to this particular article, please click here.
 
To post feedback, first please login.


 

Categories | Articles and Tutorials | Advanced Search | Recommended Reading | Upload | Newest Code | Code of the Month | Code of the Day | All Time Hall of Fame | Coding Contest | Search for a job | Post a Job | Ask a Pro Discussion Forum | Live Chat | Feedback | Customize | ASP/ VbScript Home | Site Home | Other Sites | Open Letter from Moderators | About the Site | Feedback | Link to the Site | Awards | Advertising | Privacy

Copyright© 1997-2008 by Exhedra Solutions, Inc. All Rights Reserved.  By using this site you agree to its Terms and Conditions.   Planet Source Code (tm) and the phrase "Dream It. Code It" (tm) are trademarks of Exhedra Solutions, Inc.