About 9,400,000 results
Open links in new tab
  1. c# - Catching exceptions with "catch, when" - Stack Overflow

    Jul 21, 2016 · Does using the 'catch, when' feature make exception handling faster because the handler is skipped as such and the stack unwinding can happen much earlier as when …

  2. Can I catch multiple Java exceptions in the same catch clause?

    NoSuchFieldException e) { someCode(); } Remember, though, that if all the exceptions belong to the same class hierarchy, you can simply catch that base exception type. Also note that you …

  3. Difference between catch (Exception), catch () and just catch

    I want to know if I can safely write catch () only to catch all System.Exception types. Or do I've to stick to catch (Exception) to accomplish this. I know for other exception types (e.g.

  4. Catch and print full Python exception traceback without …

    I think that this only works if you raise and then catch the exception, but not if you try getting the traceback before raising an exception object that you create, which you might want to do in …

  5. Difference between try-finally and try-catch - Stack Overflow

    May 18, 2010 · Within the catch block you can respond to the thrown exception. This block is executed only if there is an unhandled exception and the type matches the one or is subclass …

  6. Exception handling try catch inside catch - Stack Overflow

    I recently came across code written by a fellow programmer in which he had a try-catch statement inside a catch! Please forgive my inability to paste the actual code, but what he did was …

  7. c# - Catch multiple exceptions at once? - Stack Overflow

    Is there a way to catch both exceptions and only set WebId = Guid.Empty once? The given example is rather simple, as it's only a GUID, but imagine code where you modify an object …

  8. sql server - sql try/catch rollback/commit - preventing erroneous ...

    I am trying to write an MS sql script that has a transaction and a try/catch block. If it catches an exception, the transaction is rolled back. If not, the transaction is committed. I have seen ...

  9. Exception thrown inside catch block - will it be caught again?

    Sep 27, 2008 · One related and confusing thing to know is that in a try- [catch]-finally structure, a finally block may throw an exception and if so, any exception thrown by the try or catch block …

  10. sql server - @@ERROR and/or TRY - CATCH - Stack Overflow

    Will Try-Catch capture all errors that @@ERROR can? In the following code fragment, is it worthwhile to check for @@ERROR? Will RETURN 1111 ever occur? SET XACT_ABORT …