Question

Visit a popular Web site and discuss what types of exception handling techniques might be used...

Visit a popular Web site and discuss what types of exception handling techniques might be used for their Web forms. Make sure to include a link to the web site you discuss.

Write 300-350 words. DUE IN 3 HOURS PLEASE HURRY.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Ans
first of all there is a need to understand that what is exception and what is exception handling.
there are several aspect of a good program such as
1)program reliability
2)coupling
3)readability
4)self documenting code
5)portability
and
6)Robustness
yes, program should be robust, it means that if program receives some improper input,program should not be terminated abnormally, there should be a proper message for a user to indicate the mistake made by the user about the input supplied by the user.

a robust program is not terminated abnormally even if program receives improper input.
so in case of improper input, program is terminated abnormally, such a program is called robust.

exception is a situation which forces a program to be terminated abnormally.
take the example of a program which performs division between two integers.
c=a/b, here the logic is correct but if user supplies b=0(incorrect input for divisor),then the result is infinite and program will be terminated abnormally.
so there will be a exception "Divide by Zero Error".

to handle this exception,before the processing, there should be an arrangement to deal with divisor if divisor is zero. making such types of arrangements to deal with improper inputs is called exception handling.

so with the help of exception handling it is possible to make a program robust.

Exception handling techniques used for web forms
in case of a web application exceptions are handled at following levels

a)Application level:-

Application means a complete web site.it means scope of error is not limited to a single page.
it is at application level.
it means exceptions are handled at global level by adding Application_Error handler.

b)Page Level:-

At Page level, exceptions are handled by redirecting the user to an error page displaying a proper error message. All the objects( such as textboxes, listboxes ) that are supposed to be rendered on the page will not be visible, only error is displayed

apart from these there may be a code level error.

Exceptions can also be tracked by the custom logger.

in a web form the most important issue is to deal with exceptions related to database.
for example
insert operation may attempt to insert a duplicate record in data base table.
for example
two users can not have same user name.
to avoid this conflict, user_name should be declared as primary key in database table.
if a user attempts to insert a user name which is already present in database table .
there will be an exception and should be handled by the program in elegant manner without terminating abnormally.

Add a comment
Know the answer?
Add Answer to:
Visit a popular Web site and discuss what types of exception handling techniques might be used...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Design an original, professional web site following the specifications listed below. This web sit...

    Design an original, professional web site following the specifications listed below. This web site will be for a business you plan to set up for yourself or for someone else. The following is a detailed list of the requirements for your web site. READ them carefully. Instructions - Web Site Requirements for the web site: General: You will thoroughly test all your pages in more than one browser. All links MUST work. All graphics must show on the page. All...

  • Background: The purpose of this assignment is to practice dealing with exception handling and textual data....

    Background: The purpose of this assignment is to practice dealing with exception handling and textual data. Exception handling is a very important part of being an object-oriented programming. Rather returning some kind of int return value every time you tickle an object, C++ programmers expect methods to focus on their task at hand. If something bad happens, C++ programmers expect methods to throw exceptions. When caught, exceptions can be processed. When uncaught, they cause a program to terminate dead in...

  • Please provide your response for the following questions. What types of plans and decisions most likely...

    Please provide your response for the following questions. What types of plans and decisions most likely require board of director involvement, and why? What types of decisions and plans are not appropriate for board involvement, and why?     Tell about a time when an organization was not able to fully achieve all of its goals simultaneously. Why did this occur? Is complete realization of all goals impossible for an organization? Why or why not?     Describe the process that an...

  • Many college students study by simply repeating their notes over and over (rote rehearsal). Although this...

    Many college students study by simply repeating their notes over and over (rote rehearsal). Although this method is good for processing data into STM there are other means to effectively move material into LTM. Please read the “How To Study Effectively” section in Chapter 8. Now, in one to two paragraphs discuss how you currently prepare for exams and how you might incorporate additional techniques to your studying behavior. Make sure that you include four strategies from the text. Based...

  • Use your own words, don't copy and paste, don't use handwriting, please. i need your references U...

    use your own words, don't copy and paste, don't use handwriting, please. i need your references URL Link please** Book: Marketing Management DEVELOP A CREATIVE BRIEF A creative brief is a structured document whose purpose is to communicate quickly and concisely to anyone who might be involved in the creation of promotional materials for a product. The key to making the project a success starts with having a thorough and well-thought-out creative brief. It explains the ins and outs of...

  • 1. find an article about a product or service that impacts your daily life and write...

    1. find an article about a product or service that impacts your daily life and write 1 to 2 paragraphs describing the item, how it impacts your life, and what factors you think are impacting the supply and demand of this item. Be sure to include the URL of the article you accessed for this question. 2.What are the ethics of outsourcing? Is a corporation’s primary responsibility to its stockholders, by reducing labor costs? Or is its primary responsibility to...

  • 1. List some of the various communities to which you belong (organizations, work, hobbies, fields of...

    1. List some of the various communities to which you belong (organizations, work, hobbies, fields of expertise, family). Give examples of some of the behavioral and language characteristics particular to each group? For instance, do you speak to your job supervisor in the same way you speak to your child or your best friend? Why might you interact with members of different communities differently?    2.What are some of your past experiences with writing? Please explain what you like and...

  • My topic is diabetes 597690/viewContent/7888874/View The Science of Popular Diets The Impact of Nutrition Practices on...

    My topic is diabetes 597690/viewContent/7888874/View The Science of Popular Diets The Impact of Nutrition Practices on Human Wellness Understanding the Dietary Needs of Special Populations Consider that up until this point in Module 2, we have been focused on the nutritional needs and diet plans for healthy, adult individuals. The AMDRS used to calculate caloric needs have been determined to fit a general population of these individuals. In addition, there has been little need to consider deficiencies or toxicities of...

  • Programming Project 3 See Dropbox for due date Project Outcomes: Develop a Java program that uses:...

    Programming Project 3 See Dropbox for due date Project Outcomes: Develop a Java program that uses: Exception handling File Processing(text) Regular Expressions Prep Readings: Absolute Java, chapters 1 - 9 and Regular Expression in Java Project Overview: Create a Java program that allows a user to pick a cell phone and cell phone package and shows the cost. Inthis program the design is left up to the programmer however good object oriented design is required.    Project Requirements Develop a text...

  • Don't attempt if you can't attempt fully, i will dislike a nd negative comments would be...

    Don't attempt if you can't attempt fully, i will dislike a nd negative comments would be given Please it's a request. c++ We will read a CSV files of a data dump from the GoodReads 2 web site that contains information about user-rated books (e.g., book tit le, publication year, ISBN number, average reader rating, and cover image URL). The information will be stored and some simple statistics will be calculated. Additionally, for extra credit, the program will create an...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT