About 23,200,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?

    22 If there is a hierarchy of exceptions you can use the base class to catch all subclasses of exceptions. In the degenerate case you can catch all Java exceptions with:

  3. 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 …

  4. When is finally run if you throw an exception from the catch block?

    If you re-throw an exception within the catch block, and that exception is caught inside of another catch block, everything executes according to the documentation.

  5. 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 ...

  6. Is try {} without catch {} possible in JavaScript? - Stack Overflow

    Nope, (or ) is 's friend and always there as part of try/catch. However, it is perfectly valid to have them empty, like in your example. In the comments in your example code (If func1 throws …

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

    May 18, 2010 · Finally and catch blocks are quite different: Within the catch block you can respond to the thrown exception. This block is executed only if there is an unhandled …

  8. powershell - How can I use try... catch and get my script to stop if ...

    Oct 21, 2013 · Try-Catch will catch an exception and allow you to handle it, and perhaps handling it means to stop execution... but it won't do that implicitly. It will actually consume the …

  9. Is there a TRY CATCH command in Bash - Stack Overflow

    May 8, 2017 · I'm writing a shell script and need to check that a terminal app has been installed. I want to use a TRY/CATCH command to do this unless there is a neater way.

  10. TSQL Try / Catch within Transaction or vice versa?

    Apr 14, 2014 · This is my first time writing transaction, is it correct/best practice to have the TRY/CATCH block inside the transaction or should the transaction be inside the TRY block?