By tag: Exception
0
kicks
Exception: Only String, int, and DateTime data types can be used as
Exception: Only String, int, and DateTime data types can be used as the value in Properties while adding list item in document library.
0
kicks
Rethrowing Exceptions in C#
I've been somewhat surprised by this topic in the past few weeks, since it is one that has comed up in a number of circles. Basically, the comments I've heard have related to the lose of stack trace information when "rethrowing" an exception from withing a catch clause in C#.
0
kicks
Cross-Cutting Concerns should be handled on ALL projects. No Excuses
The title say it all. All cross-cutting concerns in a project should be handled or given some thought on ALL PROJECTS. No exceptions. No excuses.
0
kicks
Failed to map the path '/App_GlobalResources/'
Failed to map the path '/App_GlobalResources/' is an obscure exception generated due to some permission settings. FInd out what you need to check and change to get rid of this exception. Save yourself allot of time and solve the issue right away!
0
kicks
Exception Handling - Do's and Dont's
Exceptions provide a consistent mechanism for identifying and responding to error conditions. Effective exception handling will make code more robust and easier to debug. Exceptions are a tremendous debugging aid because they help answer...
0
kicks
Short n' sweet on throwing exceptions
All those preaching what is best, here is an explanation so you can figure out the best for you
0
kicks
Why throw; is not allways the best way to rethrow exceptions
This blog post explains why the standard throw; approach of rethrowing exceptions is not the best in case you care of the full stack trace information
0
kicks
Re-throwing an exception in .NET; the right way.
This is one of those "Yeah I've always seen people use it differently but I don't know why!" questions. Re-throwing exceptions can be misused, although it may not cause any harm to your application - there are multiple ways of re-throwing an exception, most likely for the purpose of bubbli...
0
kicks
Exception Handling Techniques in C# 2.0
Believe me handling exception is one of the toughest things to do for a programmer. It taking your wife for shopping to a very expensive place and allowing her to choose what she wants to buy. :-)
Exception handling techniques explained in a best possible way.
0
kicks
.Net: Passing user data with Exception back to the caller method
A simple way of passing any user data in the Exception back to the caller method.
0
kicks
Reporting Exceptions through E-Mail
One of the terrible things we as developers have to deal with is unhandled exceptions, we all have them good and bad developers. The problem is that no matter how well thought out an application may be we will always have holes that we never anticipated. Unfortunately one day an end user will find i...
0
kicks
String.IsNullOrEmpty can lead to runtime Null exceptions!
The author shows a flaw in String.IsNullOrEmpty of the .NET 2.0. Microsoft replies that this bug won't be fixed until Orcas. (see bug report at: http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=113102 )
0
kicks
C# Exception Handling
The thirty-fourth part of the C# Fundamentals tutorial begins a review of exception handling. When an unexpected event occurs, unhandled exceptions cause a program to exit abnormally. Correct handling permits the graceful recovery from an error condition.
0
kicks
Throw vs Throw ex
A common mistake a lot of new .Net developers do is using Throw ex instead of just Throw. The difference between Throw ex and Throw is very simple but can cause major headaches when it comes to maintenance. If you use Throw ex it overwrites the stack trace this makes it very hard to find the origina...
0
kicks
More on best practices for exception handling
Bill Wagner (author of "Effective C#"), adds his smart thoughts to Scott Hansleman's post on best practices for exception handling.