try-catch
the best choice for try catch in Java
I have a vector which contains a list of files to open and parse, and I was wondering what is the best choice to do in my case.[详细]
2023-03-28 16:25 分类:问答C++, __try and try/catch/finally
I\'m wondering a bit about C++ try/catch/finally blocks. I\'ve seen these commands with two underscores like __try. But MVSC 2010 projects also run without 开发者_如何学Pythonthe underscores. So when[详细]
2023-03-28 01:45 分类:问答Removing excessive try-catch blocks
I\'m refactoring a medium-sized WinForms application written by other developers and almost every method of every class is surrounded by a try-catch block. 99% of the time these catch blocks only log[详细]
2023-03-27 04:01 分类:问答Can PowerShell trap errors in GetChildItem and continue looping?
I have a PowerShell script that is recursing down thru the file system using GetChildItem in a for-loop. As it travels, it is fixing ACL issues it finds (mostly where someone has blocked the BUILTIN\\[详细]
2023-03-26 09:22 分类:问答Return an error when typing neither Y/N
How do i return an error and ask the question Do you want to try again (Y/N)? again when the user entered neither Y/N as an answer?[详细]
2023-03-26 05:39 分类:问答Will exception thrown in catch block be caught by later catch blocks?
Consider the following C++ code: try { throw foo(1); } catch (foo &err开发者_StackOverflow社区) {[详细]
2023-03-26 03:45 分类:问答Can't catch the exception - Java with HtmlUnit?
I don\'t understand what\'s going on ??? I have the following code : public static void main(String[] args){[详细]
2023-03-25 12:40 分类:问答try/catch doesn't work in PHP
Why am I getting this error? Warning: file_get_contents(http://www.example.com) [function.fil开发者_如何学Ce-get-contents]: failed to open stream: HTTP request failed! in C:\\xampp\\htdocs\\test.php[详细]
2023-03-25 10:22 分类:问答How do you "catch" a pod2usage exit in a Perl Script with Try::Tiny?
I\'m currently trying to learn unit testing. To do this I\'m writting a script at work, and I\'m creating unit tests for the entire script. Thus far thi开发者_运维技巧ngs have been going well, but I\'[详细]
2023-03-24 23:22 分类:问答Is it more efficient to lock or try-catch dictionary in a thread (.NET)
I have a generic Dictionary that I am using as a cache in a threaded .NET project (C#). I will be doing a lot of reads on the dictionary (potentially hundreds or more per second at peak times).[详细]
2023-03-24 22:14 分类:问答