473,378 Members | 1,413 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Are able to catch exceptions thrown in Application_Error?

I searched a little, but could not find anything helpful.

In my asp.net 2.0 web application, I am catching application level
exceptions in Application_Error of Global.asax.

What if my code inside Application_Error itself throws exception? Can
we catch it? How?

Thanks.
Sep 23 '08 #1
1 1001
Use try... catch there
PS: Do not forget to clear exception after you done in Application_Error.

George.

"Author" <gn********@gmail.comwrote in message
news:da**********************************@y38g2000 hsy.googlegroups.com...
>I searched a little, but could not find anything helpful.

In my asp.net 2.0 web application, I am catching application level
exceptions in Application_Error of Global.asax.

What if my code inside Application_Error itself throws exception? Can
we catch it? How?

Thanks.
Sep 23 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Fao, Sean | last post by:
I'm reading The C++ Programming Language by Bjarne Stroustrup and I was unclear as to the proper way to catch an exception thrown by the new keyword. I was wondering if someobody here could let me...
2
by: Vijayakrishna Pondala | last post by:
Hi, I am not able to catch exception that has been thrown from a static constructor. I am using .NET v1.0. I am getting 'Unhandled Exception....' Help!! Here is my code snippet: public class...
10
by: Cool Guy | last post by:
Consider: void Start() { if (!TryToDoSomething()) ShowErrorMessage(); }
0
by: JWA | last post by:
Hi All, How can you capture unhandled exceptions thrown by an MDI child form separate from the entire app? I have an application-wide exception handler to catch crashes by doing the following...
2
by: Bob | last post by:
Is there some built-in way of handling exceptions thrown inside a thread, or do I need to pass exception conditions to a delegate (which would force me to handle all exceptions in the thread...
2
by: Alex | last post by:
Hi Is it possible to catch exceptions thrown by a System.Threading.Thread object? i.e. I have an instance of a class that is created using the normal Thread/ThreadStart method, but once it...
2
by: james | last post by:
Hi all, I have a console app that uses AppDomain.CurrentDomain.UnhandledException. However it only seems to catch exceptions in the current thread. Exceptions in other threads (like from a...
1
by: suman.nandan | last post by:
Hi C++ Experts, Where can I find a list of exceptions thrown form std::string class and at what scenario ? Thanks in advance ! Suman.
7
BeemerBiker
by: BeemerBiker | last post by:
I am trying my hand at throwing custom exceptions. Unfortunately, while my code to catch them does work, all the other exceptions go thru my exception handler. How do I let the exception continue on...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.