By tag: exceptions
0
kicks
Guidelines for throwing exceptions
Throwing exceptions is in itself trivial. Just invoke throw with an exception object. But when should you throw? Should you create a new exception or rethrow an old one? What should you include in the exception info?
0
kicks
How to design exceptions
This article will teach you how you should design your exception classes. It’s a follow up to my previous article which told you what exceptions are and their intended usage
0
kicks
What are exceptions?
Gives you a small introduction to what exceptions are and how they differ from other errors.
0
kicks
A Guide to Sexy Exceptions in .NET
Whether you are a rookie developer or a weathered code monkey, you have seen this exception at some point in your work. Chances are, if you are the latter of the two, you have dealt with tracking the issue down and dealing with it. My goal, is to make that better.
0
kicks
The Greatest Exception Handling WTF?!? of All Time
The Exception object has ONE purpose and ONE purpose only – to represent a runtime error, nothing more. Exceptions should never be used for purposes for which they were not intended -- or you could end up with this monstrosity...
0
kicks
Custom Exceptions for the Real World
Inspired by the newly defined ADD methodologies, I have assemblies a list of real world exceptions. Have some of your own?
0
kicks
Throwing Exceptions in C#
The thirty-fifth part of the C# Fundamentals tutorial completes an investigation of exception handling. In this article we will consider the throwing of exceptions to report error conditions. This includes the use of standard and custom exception types.
0
kicks
Turn on 'all exceptions' and watch the fireworks fly
Most developers run happily along only breaking when an exception in uncaught. Did you know that you can stop and look and every single exception that's thrown? If you do you might be amazed at what'g going on deep inside of your app.
0
kicks
Improve Exception Handling with Reflection and Generics.
Building a better error trap! These techniques can also be applied to Java 5.
0
kicks
Customize errors which are not captured by customErrors in ASP.NET 2.0
In this post, we will talk about customizing error messages thrown by ASPNET when something goes wrong, specially the ones which can't be handled by CustomError tags, like error number 500, etc
0
kicks
Throw New NotImplementedException Code Snippet
The very simple code snippet for generating throw new NotImplementedException(); code and why it is better than returning some default value.
0
kicks
throw; vs. throw ex; Here's the difference!
The difference is that throw; preserves the original stack trace and throw ex; truncates the stack trace below the method in which the throw ex; call is located.