Stories recently tagged with 'Exceptions'

A Guide to Sexy Exceptions in .NET(saviant.tumblr.com)

submitted by davidsdavids(480) 6 months, 7 days ago

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. read more...

2 comments |category: |Views: 37

tags: another

The Greatest Exception Handling WTF?!? of All Time(leedumond.com)

submitted by leedumondleedumond(2139) 2 years, 8 months ago

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... read more...

4 comments |category: |Views: 1395

tags: another

Asp.net Ajax Exception Logging(dotnetslackers.com)

submitted by k000derk000der(4765) 4 years, 5 months ago

Error logging system using ASP.NET AJAX read more...

1 comment |category: |Views: 27

tags: another

Exceptions vs. Error codes with Services(blogs.msdn.com)

submitted by BrianRichardsBrianRichards(315) 4 years, 6 months ago

Brief examination of exceptions vs. error codes read more...

add a comment |category: |Views: 7

tags: another

Custom Exceptions for the Real World(brennan.offwhite.net)

submitted by offwhiteoffwhite(975) 4 years, 7 months ago

Inspired by the newly defined ADD methodologies, I have assemblies a list of real world exceptions. Have some of your own? read more...

add a comment |category: |Views: 3

tags: another

Throwing Exceptions in C#(blackwasp.co.uk)

submitted by BlackWaspBlackWasp(4024) 4 years, 10 months ago

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. read more...

3 comments |category: |Views: 183

tags: another

Turn on 'all exceptions' and watch the fireworks fly(jeremyjarrell.com)

submitted by jeremyjarrelljeremyjarrell(2685) 4 years, 11 months ago

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. read more...

add a comment |category: |Views: 5

tags: another

Improve Exception Handling with Reflection and Generics.(blogs.ittoolbox.com)

submitted by plbyrdplbyrd(825) 4 years, 11 months ago

Building a better error trap! These techniques can also be applied to Java 5. read more...

add a comment |category: |Views: 12

tags: another

Customize errors which are not captured by customErrors in ASP.NET 2.0(blogs.msdn.com)

submitted by itzrahulsoniitzrahulsoni(745) 5 years ago

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 read more...

1 comment |category: |Views: 5

tags: another

Try/Catch annoyances(weblogs.asp.net)

submitted by dalzieldalziel(6230) 5 years ago

A suggestion on how try/catch blocks could be improved for clarity. read more...

add a comment |category: |Views: 4

tags: another

Throw New NotImplementedException Code Snippet (vaultofthoughts.net)

submitted by mikeonmikeon(5200) 5 years, 4 months ago

The very simple code snippet for generating throw new NotImplementedException(); code and why it is better than returning some default value. read more...

add a comment |category: |Views: 185

tags: another

throw; vs. throw ex; Here's the difference!(mattgollob.blogspot.com)

submitted by dalzieldalziel(6230) 5 years, 4 months ago

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. read more...

add a comment |category: |Views: 22

tags: another

If it takes forever to start your app with the debugger, check for thr(codebetter.com)

submitted by dalzieldalziel(6230) 5 years, 5 months ago

There are quite of a few things that are just laws of Object-Oriented development, and one of those is that exceptions should be avoided. If you can prevent an exception from being thrown, do it. read more...

1 comment |category: |Views: 1

tags: another

The simplest error reporting in ASP.NET(madskristensen.dk)

submitted by madskristensenmadskristensen(8565) 5 years, 6 months ago

In ASP.NET 2.0 I'll show you how to get notified by e-mail when an unexpected error occurs - ONLY by editing the web.config. No C#/VB.NET code needed! read more...

1 comment |category: |Views: 282

tags: another

Divide by Zero(blogs.msdn.com)

submitted by dalzieldalziel(6230) 5 years, 6 months ago

float/double values do not cause a divideByZero exception, they set the result to '+Infinity'. Why is this? read more...

1 comment |category: |Views: 3

tags: another

Choosing the Right Type of Exception to Throw(blogs.msdn.com)

submitted by RobChappelRobChappel(2720) 5 years, 7 months ago

After you have decided when you need to throw exceptions, the next step is to pick the right type of exception to throw. This section provides those guidelines. read more...

add a comment |category: |Views: 22

tags: another