Top "Exception" questions

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

How to catch a specific SqlException error?

Q: Is there a better way to handle SqlExceptions? The below examples rely on interpreting the text in the message. …

c# exception sqlexception
How do I get ruby to print a full backtrace instead of a truncated one?

When I get exceptions, it is often from deep within the call stack. When this happens, more often than not, …

ruby exception stack-trace
How to handle AccessViolationException

I am using a COM object (MODI) from within my .net application. The method I am calling throws a System.…

c# .net exception com process-state-exception
Exception thrown in catch and finally clause

On a question for Java at the university, there was this snippet of code: class MyExc1 extends Exception {} class MyExc2 …

java exception
Good Patterns For VBA Error Handling

What are some good patterns for error handling in VBA? In particular, what should I do in this situation: ... some …

exception vba exception-handling
MavenError: Failed to execute goal on project: Could not resolve dependencies In Maven Multimodule project

I am trying to create a maven multi-module project. the project is created successfully but when I am trying to …

java maven exception dependencies multi-module
Throw keyword in function's signature

What is the technical reason why it is considered bad practice to use the C++ throw keyword in a function …

c++ exception
How should I throw a divide by zero exception in Java without actually dividing by zero?

I have an I2C device that wants two inputs: a denominator and a numerator. Both are written to separate …

java exception math divide-by-zero