Top "Exception" questions

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

Sequence contains no matching element

I have an asp.net application in which I am using linq for data manipulation. While running, I get the …

c# linq exception
How can I catch all the exceptions that will be thrown through reading and writing a file?

In Java, is there any way to get(catch) all exceptions instead of catch the exception individually?

java exception file exception-handling
Throwing exceptions from constructors

I'm having a debate with a co-worker about throwing exceptions from constructors, and thought I would like some feedback. Is …

c++ exception constructor throw
Exception thrown inside catch block - will it be caught again?

This may seem like a programming 101 question and I had thought I knew the answer but now find myself needing …

java exception
How to repair COMException error 80040154?

Moving a working C# project from a 64-bit Windows 7 machine to a 32-bit XP machine caused the following error: Retrieving …

.net exception com dllregistration
slf4j: how to log formatted message, object array, exception

What is the correct approach to log both a populated message and a stack trace of the exception? logger.error( "\…

java exception logging slf4j
Is there a difference between "throw" and "throw ex"?

There are some posts that asks what the difference between those two are already. (why do I have to even …

c# .net exception exception-handling
org.hibernate.MappingException: Unknown entity: annotations.Users

Consider the hierarchy : And the following classes and xml : HibernateUtil.java package annotations; import org.hibernate.SessionFactory; import org.hibernate.…

java hibernate exception entity
Difference between using Throwable and Exception in a try catch

Sometimes, I see try { } catch(Throwable e) { } And sometimes try { } catch(Exception e) { } What is the difference?

java exception throwable
How do you implement a re-try-catch?

Try-catch is meant to help in the exception handling. This means somehow that it will help our system to be …

java exception exception-handling try-catch