Search - Articles
DevASP.NET for ASP.NET, VB.NET, XML and C# (C-Sharp) Developers Tuesday, March 03, 2009
Dev Articles
Search Directory
ASP.NET
VB.Net
C-Sharp
SQL Server
 

FREE 12 month online training for ASP.NET & MS Expression Studio and a Free copy of MS Expression Web with Windows Server Purchase

Home >Search > Articles & Samples > C-Sharp > Exception Handling


Search:
What's New - What's Hot
Team Foundation Server 2010 Event Handling with Subscribers  Version: 0.00     Price: $0.00  
Total Hits: 2  |  Today: 0Author: Martin Hinshelwood      Rating:  
Read Reviews | Write Review |  Your Rating: 

There are a lot of references and blog posts on how to handle SOAP events raised by Team Foundation Server 2005, 2008 and 2010, but is there anything new in 2010 that supercedes this? Even though I knew it was there, no amount of google-fu brought back any results relevant to anything new, so hopefully this will fill that gap....

To Err is Human… to Handle, Divine  Version: 0.00     Price: $0.00  
Total Hits: 0  |  Today: 0Author: Jason McBurney      Rating:  
Read Reviews | Write Review |  Your Rating: 

How many times have you heard exceptions should only be thrown during exceptional events? I am aware there is a programming cult who continuously try to force this opinion into my head. In fact, many developers and architects have subscribed to this heuristic. Don't! This article is to discuss what other alternatives exist, and how to use them. As a side note, and a plug for CodeProject, if you have not looked at Daniel Turin's article, Exception Handling Best Practices in .NET[^], you should....

Cloning an Exception (kinda sorta)  Version: 0.00     Price: $0.00  
Total Hits: 2  |  Today: 0Author: PIEBALDconsult      Rating:  
Read Reviews | Write Review |  Your Rating: 

Sometimes, when you catch an Exception, you just want to add some information and re-throw. One way to do that is to add items to the Exception's Data collection, but I don't think many developers do that (I don't)....

Exception Handling in C#  Version: 0.00     Price: $0.00  
Total Hits: 1  |  Today: 0Author: Rajesh VS      Rating:  
Read Reviews | Write Review |  Your Rating: 

Exception handling is an in built mechanism in .NET framework to detect and handle run time errors. The .NET framework contains lots of standard exceptions. The exceptions are anomalies that occur during the execution of a program. They can be because of user, logic or system errors. If a user (programmer) do not provide a mechanism to handle these anomalies, the .NET run time environment provide a default mechanism, which terminates the program execution....

Exception Handling in C#  Version: 0.00     Price: $0.00  
Total Hits: 1  |  Today: 0Author: Rekha      Rating:  
Read Reviews | Write Review |  Your Rating: 

Exception handling is an in built mechanism in .NET framework to detect and handle runtime errors. The .NET framework contains lots of standard exceptions.

The exceptions are anomalies that occur during the execution of a program.

"Exception is a runtime error which arises because of abnormal conditions in a condition in a sequence."...

Customized Exception Handling  Version: 0.00     Price: $0.00  
Total Hits: 1  |  Today: 0Author: Jayachandran K      Rating:  
Read Reviews | Write Review |  Your Rating: 

In one of our project, we were thinking of replacing the existing our own created Exception handling, with Enterprise library for exception handling. We are able to integrate the Exception handling name space without any problem. And are using, their various Exception handling policies like Replace Policy, Wrap Policy, Propagate Policy etc....

Using Extension Methods to Create Form Extensions  Version: 0.00     Price: $0.00  
Total Hits: 47  |  Today: 0Author: Jonas Butt      Rating:  
Read Reviews | Write Review |  Your Rating: 

The provided source code demonstrates the use of the Extension Methods language feature of C# 3.0.

I consider myself to be a junior .NET (C#) developer. Not long ago, I started programming small to midsize Windows Forms applications using the .NET framework and Visual Studio. I recently upgraded to .NET 3.5 and Visual Studio 2008, and I'm now particularly interested in the C# language and its (recently added) features....

Exception Handling Application Block     
Total Hits: 190  |  Today: 0Author: bigb_602      Rating:  
Read Reviews | Write Review |  Your Rating: 

Exception Handling Application Block. An application block provided by Microsoft to incorporate exception handling in your applications as a standard framework, rather than ad-hoc approach. This article summarizes the basic concept and usage of the same....

HOW TO: Catch Exceptions in Visual C# .NET     
Total Hits: 1824  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

Catching and dealing with exceptions is a standard programming task. This article demonstrates how to use a try-catch-finally block to catch an exception. A try-catch-finally block is a "wrapper" that you put around any code where the possibility of an exception exists....

C# Exception handling basics     
Total Hits: 1161  |  Today: 0Author: Gaurav Mantro      Rating:  
Read Reviews | Write Review |  Your Rating: 

Exceptions are one of the basic building blocks of C# and understanding of exception handling mechanism is a must for programming in C#. This article explains basics of exception handling concept and syntax in C# language....

Best Practices of Exception Management  Version: 0.00     Price: $0.00  
Total Hits: 1  |  Today: 0Author: HandyGuy      Rating:  
Read Reviews | Write Review |  Your Rating: 

Exception management is one of the key areas for all kinds of application development. You should adopt an appropriate strategy for exception management to build high quality and robust applications. It is a very powerful concept and makes the development work very easy if it's used efficiently. Inappropriate way of handling exceptions can degrade the performance of your applications....

The art of creating exceptions  Version: 0.00     Price: $0.00  
Total Hits: 0  |  Today: 0Author: jgauffin      Rating:  
Read Reviews | Write Review |  Your Rating: 

Please take a moment and think about WHY you throw exceptions.

You done? Have you come up with a reason? You are probably thinking: “That b!@tch is a total moron. I throw exceptions to know that something exceptional has happened!”. If that is the case, please stop reading here. (The first part of the thought is totally fine by me, I can be a total moron.)...

Unhandled Exception Handler For WPF Applications  Version: 0.00     Price: $0.00  
Total Hits: 2  |  Today: 0Author: Abhishek Sur      Rating:  
Read Reviews | Write Review |  Your Rating: 

Exception handling is very vital for any software. We use our traditional way of handling exceptions of our code using Try/ Catch / Finally block to handle runtime exceptions. We write our code inside a try block and wait for the error being generated from the code, and write our proper catch block to handle the Exception if generated while running the code. Compiler handles all these problems and calls the appropriate catch automatically. We write various Catch blocks which handle the exception...

A Simple Class to Catch Unhandled Exceptions in WinForms  Version: 0.00     Price: $0.00  
Total Hits: 2  |  Today: 0Author: Vitaly Zayko      Rating:  
Read Reviews | Write Review |  Your Rating: 

Everyone knows how important exception handling is: no one wants to see meaningless messages, or application crashes, or even (often in the past) ? ?the blue screen of depth?. Fortunately, C#, just like probably all modern languages, has powerful try-catch-finally functions set that seemingly help to prevent common errors. But not in all cases....

Idea of the Clean Result (concept of the monolithic/non-monolithic code) or an alternative to Java's checked exceptions  Version: 0.00     Price: $0.00  
Total Hits: 2  |  Today: 0Author: Sergei Kitaev      Rating:  
Read Reviews | Write Review |  Your Rating: 

There is a problem connected with the .NET exception handling strategy; it has an effect on the reliability of managed code. In one sentence, the question is: Why C# does not have any defense against The Side Effect of Unexpected Exceptions? The phenomenon of implicit interruption of code flow (without an explicit throw statement) can take place when some of the lower layers throw unexpected exceptions and some of the upper layers handle such cases as normal. As a result, some data in the progra...

Get the call stack when an exception is being caught  Version: 0.00     Price: $0.00  
Total Hits: 0  |  Today: 0Author: Baiyan Huang      Rating:  
Read Reviews | Write Review |  Your Rating: 

StackTracer is a C++ class which enables you to get the call stack conveniently using Windows SEH, and then you can either show the exception message or log it to help you diagnose the problem. It works both in Debug and Release modes as long as you have the PDB files. (It might be not that accurate in Release mode as functions might be optimized out.)...

Auditing and Logging Exceptions  Version: 0.00     Price: $0.00  
Total Hits: 0  |  Today: 0Author: Sonu Chauhan      Rating:  
Read Reviews | Write Review |  Your Rating: 

The default ASP.NET process identity for Web applications can write new records to the event log, but it does not have sufficient permissions to create new event sources....

Custom Exceptions using Microsoft Exception Management Application Block  Version: 0.00     Price: $0.00  
Total Hits: 0  |  Today: 0Author: R. Seenivasaragavan Ramadurai      Rating:  
Read Reviews | Write Review |  Your Rating: 

The Microsoft Exception Management Application Block provides a very simple framework for handling exceptions. It also provides the Interface to implement custom exception to log the error in different Data sources like

1. Text File
2. Alert to Pager
3. MSMQ
4. Data base
5. Email Notification...

Best Practices for handling exceptions  Version: 0.00     Price: $0.00  
Total Hits: 0  |  Today: 0Author: Santhosh Veeraraman LnT      Rating:  
Read Reviews | Write Review |  Your Rating: 

This article shall explain some of the best practices when you deal with exceptions. Exception is an expensive process, for this reason, you should use exceptions only in exceptional situations and not to control regular logic flow....

Exceptions Handling. Some advanced detail.  Version: 0.00     Price: $0.00  
Total Hits: 18  |  Today: 0Author: Roman_K      Rating:  
Read Reviews | Write Review |  Your Rating: 

Difference is in tracing information what end catcher have got. Namely it causes information that stores in StackTrace and TargetSite. By the way, StackTrace property gets a string representation of the frames on the call stack at the time the current exception was thrown and TargetSite property gets the method that throws the current exception. If you use throw you keep trace information and these properties contain truthful information (I mean stack, and method where exception occured). On the...


1  2  3  4  5  6  7  Next >> 


Disclaimer - Privacy
© 2002-2012 DevASP.net