Top "Exception-handling" questions

An exception is an unusual condition that requires deviation from the program's normal flow.

How to hide a TemplateField column in a GridView

How can I hide a TemplateField column in a GridView? I tried the following: <asp:TemplateField ShowHeader="False" Visible=…

asp.net .net data-binding gridview exception-handling
Globally catch exceptions in a WPF application?

We are having a WPF application where parts of it may throw exceptions at runtime. I'd like to globally catch …

c# wpf exception exception-handling
Service has zero application (non-infrastructure) endpoints

I recently created a WCF service (dll) and a service host (exe). I know my WCF service is working correctly …

.net wcf exception-handling wcf-configuration wcf-endpoint
Cannot implicitly convert type 'System.Linq.IQueryable' to 'System.Collections.Generic.IList'

I have a method: public DzieckoAndOpiekunCollection GetChildAndOpiekunByFirstnameLastname(string firstname, string lastname) { DataTransfer.ChargeInSchoolEntities db = new DataTransfer.ChargeInSchoolEntities(); DzieckoAndOpiekunCollection result = new …

c# .net linq exception-handling linq-to-entities
Python FileNotFound

I am fairly new to python. I am trying to make a script that will read sudoku solutions and determent …

python-3.x exception-handling file-not-found
continuing execution after an exception is thrown in java

I'm trying to throw an exception (without using a try catch block) and my program finishes right after the exception …

java exception-handling throw
Throwing exceptions in a PHP Try Catch block

I have a PHP function in a Drupal 6 .module file. I am attempting to run initial variable validations prior to …

php exception-handling drupal-6 try-catch
Why are empty catch blocks a bad idea?

I've just seen a question on try-catch, which people (including Jon Skeet) say empty catch blocks are a really bad …

exception-handling try-catch
.NET Global exception handler in console application

Question: I want to define a global exception handler for unhandled exceptions in my console application. In asp.net, one …

c# .net vb.net exception-handling console-application
catch exception that is thrown in different thread

One of my method (Method1) spawns a new thread. That thread execute a method (Method2) and during exectution an exception …

c# multithreading exception-handling