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
 


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: 19  |  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....

Unhandled Exception Handler For WPF Applications  Version: 0.00     Price: $0.00  
Total Hits: 35  |  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...

Exception Handling in C#  Version: 0.00     Price: $0.00  
Total Hits: 10  |  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: 11  |  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: 11  |  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....

Exceptions Handling. Some advanced detail.  Version: 0.00     Price: $0.00  
Total Hits: 25  |  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...

Ever Had to Tackle An OutOfMemory Exception?  Version: 0.00     Price: $0.00  
Total Hits: 24  |  Today: 0Author: Red Gate Software      Rating:  
Read Reviews | Write Review |  Your Rating: 

I know people don’t often have time to read complete articles, so you can get a very quick overview of what I’m saying here if you just scan down and read only the headers and the red comments put directly into the images. Together with the Conclusion at the very bottom, this should give you a rough-but-intelligable outline of what I cover in the complete article. However, I naturally extend a warm welcome for you to read the whole article – I promise it isn’t too long....

Hierarchical Exception Handling with Enterprise Library  Version: 0.00     Price: $0.00  
Total Hits: 51  |  Today: 0Author: Mark Nischalke      Rating:  
Read Reviews | Write Review |  Your Rating: 

Recently I encountered a situation where the solution was to have a common implementation for Exception Handling across all their applications. Naturally, Microsoft's Enterprise Library and the Exception Handling Application Block came to mind. To satisfy the need for common handling across applications, the configuration files would need to be the same, or at least the Exception Handling entries would need to be. This could, of course, be handled by linking a common config file via source contr...

Using Extension Methods to Create Form Extensions  Version: 0.00     Price: $0.00  
Total Hits: 56  |  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....

String Encryption using DPAPI and Extension Methods     
Total Hits: 51  |  Today: 0Author: Philipp Sumi      Rating:  
Read Reviews | Write Review |  Your Rating: 

As you can see, the Protect method of the ProtectedData class takes binary input and returns a byte array that contains the encrypted data. This means that you’ll have to do some conversions when dealing with strings, and the result of the encryption is a byte array anyway. NetDrives relies on the DPAPI to encrypt user passwords that are stored on disk. Accordingly, I didn’t want to deal with binary data at all: Both input and output were supposed to be strings, which why I came up with a few ex...

Exception Handling Application Block     
Total Hits: 198  |  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....

The Well-Tempered Exception     
Total Hits: 348  |  Today: 0Author: Eric Gunnerson      Rating:  
Read Reviews | Write Review |  Your Rating: 

A few months, I was writing some code and I came across an Exception class that didn't work the way I expected. I wanted to catch an exception and then wrap it in an exception of the same type. However there wasn't a constructor that took an exception, so I couldn't do it. In other words, the class designer hadn't included the (string message, Exception inner) constructor. This got me thinking about how exception classes should be written, and I realized that I didn't understand exactly wha.....

HOW TO: Catch Exceptions in Visual C# .NET     
Total Hits: 1849  |  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: 1180  |  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....

Fixing “Unrecognized configuration section userSetting” Errors  Version: 0.00     Price: $0.00  
Total Hits: 42  |  Today: 0Author: TheyCallMeMrJames      Rating:  
Read Reviews | Write Review |  Your Rating: 

Though I have not seen the error “Unrecognized configuration section userSetting” as a standalone exception, it has come up a number of times for me and surfaces as the inner exception on a “Configuration system failed to initialize” exception....

Best Practices of Exception Management  Version: 0.00     Price: $0.00  
Total Hits: 10  |  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....

Avoiding useless checks  Version: 0.00     Price: $0.00  
Total Hits: 6  |  Today: 0Author: gedgei      Rating:  
Read Reviews | Write Review |  Your Rating: 

All of us are trying to write code that is safe. It’s not uncommon to come across something like that:...

To Err is Human… to Handle, Divine  Version: 0.00     Price: $0.00  
Total Hits: 8  |  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....

Custom exceptions in C#.NET  Version: 0.00     Price: $0.00  
Total Hits: 14  |  Today: 0Author: Laxman Auti      Rating:  
Read Reviews | Write Review |  Your Rating: 

During development, I always look for an optimal and efficient way to achieve a goal. Last time, I came with the way to log the exceptions along with method parameters for which exception has thrown....

A Simple Class to Catch Unhandled Exceptions in WinForms  Version: 0.00     Price: $0.00  
Total Hits: 9  |  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....


1  2  3  4  5  6  7  Next >> 


Disclaimer - Privacy
© 2002-2017 DevASP.net