How to handle exceptions without using try,catch,throw, and
log4j
Answers were Sorted based on User's Feedback
Answer / pravin
in case of .net, if you are not using
try/catch/finally/throw/log4j
1. make use of Page_error method on any .aspx page to
handle error on the specfic page
2. in global.asax use application_error event handler
3. web.config, under Error - specify what need to be done
based on error code/type
Is This Answer Correct ? | 12 Yes | 2 No |
Answer / ajay kumar
1.we can handle exception using Exception management application block
2.By using page_error on asp.net page
3.By using Application_error object
Is This Answer Correct ? | 7 Yes | 0 No |
Answer / sathya
If you want to handle exceptions you must use try & catch
block or try followed by the finally block.
If you don't want to handle them you can use throws clause.
Is This Answer Correct ? | 2 Yes | 6 No |
Answer / anup
Generally without try catch trow we can not handle
exceptions handling is not a good practice.
In that case we have to first find the probalbe case for
exception and using if else codition we have to implement
those condition and handling this.
Is This Answer Correct ? | 3 Yes | 13 No |
Where can I find the CLI for Web Server 7.0.9 administration?
How to configure SSL in iPlanet/SunOne?
How to handle exceptions without using try,catch,throw, and log4j
what is swing and jsp. where we use swings and jsp
how to create a configuration for Oracle iplanet web server?
What are the configuration files for iPlanet/SunOne?
What are the SSL formats supported by iPlanet/SunOne?
How to configure a website in iPlanet/SunOne?
How to Resetting the Administration Password?
what does a constructor does.