How does the code in a try ... catch block throw an unhandled exception?

I had an exception in some code today: "Some exception was handled."

However, this code was clearly inside the try block of the try / catch structure.

What am I missing here?

Update: This is C #

Update: Oh, forget about it. It turns out that the special mechanism of error is that I'm an idiot. There is no fix.

+5
source share
6 answers

Does the catch statement indicate a specific type of exception?

If so, it will only catch this type of exception.

+5
source

catch ( e),

    try
    {
    }
    catch
    {
    }

        try
        {
        }
        catch (Exception e)
        {
        }
+4

, , StackOverFlow .., try... catch, - , CLR. , - .

, - :

alt text

+3

"break on exceptions" / "break on throw"? , try/catch.

+2

I have $ 10, which indicates a ThreadAbortException or some other self-terminating exception. If so, you should catch the exception twice.

+1
source

Without knowledge of the language, this is difficult to say, but many languages ​​have the concept of exceptions that cannot be caught - for example, in .NET, OutOfMemoryException and ExecutionEngineException (among others) cannot be caught, since they are essentially not recoverable.

0
source

All Articles